The Relationship Between Pointers and Arrays in C Language – Part Two
2. Analysis from the Implementation Perspective (Compiled Code) Previously, we briefly understood the relationship between arrays and pointers from the perspective of program writing. Next, we will analyze this logic more deeply from the perspective of compilation implementation. int *int_pointer = int_array; lea -0x40(%rbp),%rax ; (%rbp) – 0x40 value of int_array mov %rax,-0x8(%rbp) ; -0x8(%rbp) … Read more