program pass through five different processors before it is ready to be executed
1.EDITOR:input,form terminal
output;a source code file containing C source code and (maybe) preprocessor commands
2.PREPROCESSOR:input,source code file
output,source code file with macros expanded and other files included as indicated by preprocessor commands
3.COMPILER:input,source code file with macros expanded,etc.
output,assembly language source code
4.ASSEMBLER:input,assembly language source code file
output,relocatable object code
5.LINKER:input,relocatable object code modules from your programs and from C library
output,executable code
The macro preprocessor will not expand macro names placed inside quotation marks.
Conditional Compilation,
debug use
#include DEBUG
#ifdef DEBUG
printf("in func_1,x=%d\n",x);
#endif
爱着你,就要让全世界都知道你的好!——致中国大学MOOC
-
2015年我大学毕业十年,同学们重回校园聚会,感慨万千,还是怀念学生时代。又讲起当年的四大名捕课程,挂科的, […]
7 years ago