목록GCC (1)
Myo-Kyeong Tech Blog
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bH07q7/btshb6Cm6xd/0YyREmFh67PX3SZZtiyVDk/img.png)
C언어 컴파일 과정은 크게 전처리(Preprocessing), 컴파일(Compilation), 어셈블(Assembly), 링크(Link) 4단계로 나눌 수 있습니다. [ helloworld.c 파일 생성 ] nano helloworld.c #include int main() { printf("Hello, World!\n"); return 0; } 전처리 ( Preprocessing ) #define, #include 와 같은 전처리 지시어를 처리 #include : 컴파일러에게 stdio.h라는 헤더 파일의 내용을 현재 위치에 삽입하도록 지시 'helloworld.i' 파일 생성 gcc -E helloworld.c -o helloworld.i 컴파일 ( Compilation ) 전처리된 소스 코드를 받아..
리눅스
2023. 5. 23. 20:47