Sounds like you may need to look at something like the os-devel wiki, gcc is a compiler it ONLY reads source code and outputs assembler code. It doesn't have an in-built assembler or linker. You may want to read up on: http://wiki.osdev.org/Main_Page Its got many tutorials on getting up to speed with the tools needed etc to generate boot-able kernel images etc. Hope this helps! --Phil