본문 바로가기
csapp

3.8.3 Nested Arrays

by 정구지개발자 2023. 4. 19.
728x90
  • Data type row3_t is defined to be an array of three integers.

 

3.8.4 Fixed-Size Arrays

  • This code contains a number of clever optimizations. It removes the integer index j and converts all array references to pointer dereferences.
  • This involves (1) generating a pointer, which we have named Aptr, that points to successive elements in row i of A,

    (2) generating a pointer, which we have named Bptr, that points to successive elements in column k of B,

    (3) generating a pointer, which we have named Bend, that equals the value Bptr will have when it is time to terminate the loop.

     

 

3.9 Heterogeneous Data Structures

3.9.1 Structures

  • The C struct declaration creates a data type that groups objects of possibly different types into a single object.

 

728x90

'csapp' 카테고리의 다른 글

Stack Corruption Detection  (0) 2023.04.28
3.9.2 Unions  (0) 2023.04.22
3.7.4 Local Storage on the Stack  (0) 2023.04.18
3.7.1 The Run-Time Stack  (2) 2023.04.18
3.6.8 Switch Statements  (0) 2023.04.14

댓글