본문 바로가기

컴퓨터 과학 & 영상처리 관련/임베디드

gcc 컴파일 설정

gcc test.c -o test
cpp0 test.c /tmp/test.i
cc1 /tmp/test.i -o /tmp/test.s
as /tmp/test.s -o /tmp/test.o
ld /tmp/test.o /tmp/test2.o -o test
./test

 

gcc -v -save-temps -o test test.c

 

#ls
test test.c test.i test.o test.s