Skip to content
Snippets Groups Projects
Commit 15f7237c authored by 이장원's avatar 이장원
Browse files

Update README.md

parent 9c34c41a
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
$ gcc -o 00.option-o 00.option-o.c $ gcc -o 00.option-o 00.option-o.c
``` ```
![o](../Images/o.png) ![o](../Images/o.png)
* -E * -E
전처리하여 전처리된 소스 파일(.i)을 생성 전처리하여 전처리된 소스 파일(.i)을 생성
``` ```
...@@ -46,6 +47,7 @@ ...@@ -46,6 +47,7 @@
``` ```
리디렉션으로 .i 생성 리디렉션으로 .i 생성
![E](../Images/E.png) ![E](../Images/E.png)
* -S * -S
컴파일하여 어셈블리 파일(.s)을 생성 컴파일하여 어셈블리 파일(.s)을 생성
``` ```
...@@ -53,6 +55,7 @@ ...@@ -53,6 +55,7 @@
``` ```
.s 생성(.i 없어도 가능) .s 생성(.i 없어도 가능)
![S](../Images/S.png) ![S](../Images/S.png)
* -c * -c
어셈블하여 목적 파일(.o)을 생성 어셈블하여 목적 파일(.o)을 생성
``` ```
...@@ -60,12 +63,14 @@ ...@@ -60,12 +63,14 @@
``` ```
.o 생성(.i나 .s 없어도 가능) .o 생성(.i나 .s 없어도 가능)
![c](../Images/c.png) ![c](../Images/c.png)
* -D * -D
외부에서 매크로를 define 외부에서 매크로를 define
``` ```
$ gcc -DNO 05.option-D.c $ gcc -DNO 05.option-D.c
``` ```
![D](../Images/D.png) ![D](../Images/D.png)
* -g * -g
운영체제 고유의 형식으로 디버깅 정보를 만듦 운영체제 고유의 형식으로 디버깅 정보를 만듦
``` ```
...@@ -75,12 +80,14 @@ ...@@ -75,12 +80,14 @@
on Raspberry Pi on Raspberry Pi
![g_Git_Bash](../Images/g_Git_Bash.png) ![g_Git_Bash](../Images/g_Git_Bash.png)
on Git Bash on Git Bash
* -Wall * -Wall
GCC가 제공할 수 있고, 일반적으로 유용한 모든 경고 메시지 출력 GCC가 제공할 수 있고, 일반적으로 유용한 모든 경고 메시지 출력
``` ```
$ gcc -Wall 07.option-Wall.c $ gcc -Wall 07.option-Wall.c
``` ```
![Wall](../Images/Wall.png) ![Wall](../Images/Wall.png)
* -I(upper case of i) * -I(upper case of i)
헤더 파일을 검색할 디렉터리를 추가 헤더 파일을 검색할 디렉터리를 추가
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment