CS4100计算机结构InstructionSetArchitecture.ppt

CS4100计算机结构InstructionSetArchitecture

(Make noise) Back row! You in the (describe clothing)! I do a load byte from t0 to t1. What do I get in t1? F7? Is there anything you would like to add to your statement? So your final answer is F7? (Alarm.wav) Instruction Set-* Arrays vs. Pointers Array indexing involves Multiplying index by element size Adding to array base address Pointers correspond directly to memory addresses Can avoid indexing complexity Instruction Set-* Example: Clearing an Array clear1(int array[], int size) { int i; for (i = 0; i size; i += 1) array[i] = 0; } clear2(int *array, int size) { int *p; f

文档评论(0)

1亿VIP精品文档

相关文档