C language environment summary

1. C language environment under Virtual Memory

 

2.main function calls

 

 3. Stack call

  Each function call, allocating a stack frame on the stack, the register holding the base address of the stack by the frame, and the vertical offset, and the local variable access parameter,

  The C language is a word size parameter, it is usually passed a pointer, which is efficient C.

4. The command line parameters

The function returns

6. Global Variables

Global variables in the data segment, at compile-time initialization completed.

Address global variables are organized into the address table, cpu held by the base address of the address table access to all global variables.

 

Guess you like

Origin www.cnblogs.com/yangxinrui/p/11408616.html