Back to Main List
Back to Book List

Notes and Reflections on Books and Media

by Hannah Leitheiser

library and no library hello world

programming from the ground up

jonathan bartlett

2003

Link

2017-10-26

finished programming from the ground up, which is a good primer. here we have hello world with and without the c library call (adapted some from the book, as the c calling convention changed for 64-bit x86. shameless google copypaste there).

you do notice with the printf call, the executable file size grows to more than 3 times the syscall version. why is that?

well, that's a question for someone who understands elf executable formats better than i do, i think.