05. C: Addressing and address arithmetic

(NB: Sugon IP is changed)

Previous lecture debt: calling a linker.

So try a little cc o.c with strace -f -eexecve -s1024 cc o.c

OMFG!

Addressing

(use cc -O0 -static -mno-explicit-relocs -mno-shared -mno-abicalls -mno-gpopt -g -Wa,-adhlns file.c or compile script)

Structs

Alignment

Arrays on stack

Function address

TODO static

HSE/ProgrammingOS/05_C_Addressing (last edited 2020-02-12 07:04:05 by FrBrGeorge)