gcc에서 -S 옵션을 쓰면 코드가 어셈블리로 컴파일 된다.gcc -S main.c # 기본 컴파일gcc -S -masm=intel main.c # intel syntaxgcc -S -masm=intel -fverbose-asm main.c # 상세한 주석코드 예시명령어nvim helloworld.c 파일 내용#include int main(void){ printf("hello world\n");}컴파일 예시1명령어gcc -S helloworld.c -o hello1.s 파일 내용 .file "helloworld.c" .text .section .rodata.LC0: .string "hello world" ..