porting GCC

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.
Post Reply
mr. xsism

porting GCC

Post by mr. xsism »

i'm not going to be doing it soon but my mind is always wandering. What is invloved in making GCC work under a hobby OS like many of us have?

Would you compile it on our dev platform and then run it in our OS? If our OS can load exe or elf then we can just use the binaries, right? What dependencies in the code exist? Would i have to change code for FS? That's the only dependency i can think of. Are there any others?

mr. xsism
nullify

Re:porting GCC

Post by nullify »

I imagine the gcc build would have to be tweaked a bit to build with your OS libraries instead of the ones on your host system. This probably means you'll have to support a good deal of the POSIX standard as well. Aside from that I'm not quite sure what would need to be done. You could take a peek at AtheOS; if I remember correctly, gcc (as well as a bunch of other GNU software) has been ported to it.
Post Reply