소스코드를 컴퓨터가 이해할 수 있는 기계어로 변환하는 작업
Options Controlling the Kind of Output
Compilation can involve up to four stages: preprocessing, compilation proper, assembly and linking, always in that order. GCC is capable of preprocessing and compiling several
files either into several assembler input files, or into one assembler input file; then each assembler input file produces an object file, and linking combines all the object
files (those newly compiled, and those specified as input) into an executable file.
#include "stdio.h"
#include <unistd.h>
#ifndef MESSAGE
# define MESSAGE "\nYou wish\n"
#endif
#define message_for(a, b) \
printf(#a " " #b ": Simply Easy Learning!\n")
#define tokenpaster(n) printf ("token" #n ' = %d", token ##n)
int main(void)
{
int token34 = 40;
printf("MESSAGE);
message_for(Tutorials, Point);
tokenpaster(34);
return (0);
}
-- result --
You wish
Tutorials Point: Simply Easy Learning!
token34 = 40