C_CPP/01_ENV/Testat/build.sh

15 lines
276 B
Bash
Raw Normal View History

2018-03-20 13:12:11 +01:00
#!/bin/sh
# generate main.s, main.o, b.out
pcc -O0 -S main.c
as -o main.o main.s
#ld -o b.out main.o /lib/crt0.o /lib/crti.o -lc
pcc -o b.out main.o
# generate a.out
pcc -O0 -g main.c
# generate assembly intermixed with source code
objdump -S a.out > objdump-S_a.out.txt