avoiding crt0

Jan Van Belle Jan.Van_Belle@alcatel.be
Fri Dec 21 09:14:00 GMT 2001


	Hello all,

How can I avoid compiling crt0 and related into a simple project?

For example :

int main (void) {
   int a;

   a = 'a';
   a++;

   return 1;
}

compiled with: arm-elf-gcc -ggdb -mcpu=arm7tdmi -mthumb -o test.elf
testeke.c
gives: ls -l test.elf
       -rwxr-xr-x   1 belleja  we2        144945 Dec 19 13:13 test.elf

Quite a big size for small code not??

So I wonder how to avoid crt0 and replace it with my own stuff...

Regards,

     Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Jan.Van_Belle.vcf
Type: text/x-vcard
Size: 297 bytes
Desc: Card for Jan Van Belle
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20011221/6dbc853c/attachment.vcf>
-------------- next part --------------
------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


More information about the crossgcc mailing list