Click here to Skip to main content
16,020,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys
i am writing a small OS,how i can customize the gcc compiler for my os and
use it in my OS?
Posted

I doubt if you have the time/skills to modify the compiler itself, but you can change the switches used to compile your application (to make it create a certain kind of executable (or library).

I don't personally know anything about GCC, so you're probably going to have to rely largely on the google monster.
 
Share this answer
 
GCC produces object files, it's the linking utility that produces the final executable. Inventing a new executable format is a dauting task on it's own, why not reuse an existing one?

Here is a link you should investigate:
The OSKit Project[^] - played around with it years ago, didn't amount to much, but it WAS FUN!

Regards
Espen Harlinn
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900