Code::Blocks Forums

User forums => Embedded development => Topic started by: mmkider on September 25, 2008, 09:11:06 am

Title: How to change crt0.S to my init code in this codeblocks tool?
Post by: mmkider on September 25, 2008, 09:11:06 am
codeblock link crt0.s by default.
If I want change start code(crt0.s),how to change option in this codeblocks?


thx :P
Title: Re: How to change crt0.S to my init code in this codeblocks tool?
Post by: mariocup on September 25, 2008, 09:22:15 am
Hi mmkider,

if you do not want to link the startup code crt0.s by default then you will have to pass the linker options -nocrt0 and the the compiler option -nostartfiles.

Bye,

Mario
Title: Re: How to change crt0.S to my init code in this codeblocks tool?
Post by: mmkider on September 25, 2008, 11:15:22 am
thx

I key -nostartfiles in other linker option,it's ok.
 :D