/compile_link

For BambooFox

Primary LanguageMakefileMIT LicenseMIT

#Compile & Link Tutorial

##Slide

slides.pdf

##Refernece

How A Compiler Works: GNU Toolchain

The Internals of "Hello World" Program

Internal and External Linkage in C

##General Operation

Preprocess

make preprocess

Assembly Code Generation

make assembly

Compilation without linking

make object

Disassembly

make objdump

Build executable program

make build

Do all above

make all

Clean

make clean

##4_custom_static

Build additional library

make lib

##6_custom_dynamic

Build additional library

make lib

Execute with custom shared library

make run

##7_preload_dynamic

Build additional library

make lib

Execute with libc.so (normal)

make normal_run

Execute with preload shared library

make run