Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
hi, i used tcc to compile, so far, but the compiler's support of c is unsufficent, so i wanted to settle to gcc, but when i link i get file sizes above 4k, for a hang kernel
the files:
asmsystem.asm
try objdump -x kernel to see what section takes place.
Possible problems include
- the ELF headers themselves take alot of space
- the text section has been padded to 4K (one page) by the linker to make on-demand loading faster (can be disabled with -n option iirc)
- some other section (.note, .symtab, .strtab ... ) you do not wish is added by default. Use the power of objcopy to remove it .