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

Update README.md

parent 9f2a310e
Branches
No related tags found
No related merge requests found
......@@ -34,7 +34,6 @@
```
$ gcc -o 00.option-o 00.option-o.c
```
![o](https://git.ajou.ac.kr/leejangwon/battle_c/-/blob/master/Images/o.png)
![o](../Images/o.png)
* -E
전처리하여 전처리된 소스 파일(.i)을 생성
......@@ -46,45 +45,45 @@
$ gcc -E 01.option-E.c > 01.option-E.i
```
리디렉션으로 .i 생성
img
![E](../Images/E.png)
* -S
컴파일하여 어셈블리 파일(.s)을 생성
```
$ gcc -S 02.option-S.i
```
.s 생성(.i 없어도 가능)
img
![S](../Images/S.png)
* -c
어셈블하여 목적 파일(.o)을 생성
```
$ gcc -c 03.option-c.s
```
.o 생성(.i나 .s 없어도 가능)
img
![c](../Images/c.png)
* -D
외부에서 매크로를 define
```
$ gcc -DNO 05.option-D.c
```
img
![D](../Images/D.png)
* -g
운영체제 고유의 형식으로 디버깅 정보를 만듦
```
$ gcc -g 06.option-g.c
```
img
![g_Raspberry_Pi](../Images/g_Raspberry_Pi.png)
on Raspberry Pi
img
![g_Git_Bash](../Images/g_Git_Bash.png)
on Git Bash
* -Wall
GCC가 제공할 수 있고, 일반적으로 유용한 모든 경고 메시지 출력
```
$ gcc -Wall 07.option-Wall.c
```
img
![Wall](../Images/Wall.png)
* -I(upper case of i)
헤더 파일을 검색할 디렉터리를 추가
```
$ gcc -ImyInclude 09.option-I.c
```
img
\ No newline at end of file
![I](../Images/I.png)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment