[[ blog 이사 과정에서 정확한 posting날짜가 분실됨. 년도와 분기 정도는 맞지 않을까? ]]
What is variable in C? Let's think about this deeply.
The variable consists of type and name.
Then, what is 'type'? and what is name?
'type' is "What the memory value means"; Way of interpreting memory.
'name' is alias of memory address.
Can you understand?
We can know that 4-byte-memory-value from address '&a' represents 'signed integer value' from C code "int a;".
Following example(ARM assembly and C codes) shows this explicitly.
// asm.s EXPORT my_symbol CODE32 my_symbol DCD 0x73d71034 ------------ // symbol.c extern char* my_symbol; int data = (int)my_symbol;
'Language > C&C++' 카테고리의 다른 글
[C/C++] Remind! Limitation of constructor; It doens't give return value!.. (0) | 2009.05.15 |
---|---|
[C/C++] 'const' keyword. (0) | 2009.03.11 |
[C/C++] Try to avoid cross-dependency between selective-compile-switches. (0) | 2008.12.14 |
[C/C++] Using static variable in large-size-file. (0) | 2008.09.09 |
[C/C++] Indirect branch... (0) | 2008.07.26 |