This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

avoiding crt0


	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
begin:vcard 
n:Van Belle;Jan
tel;work:+32 3 4503297
x-mozilla-html:FALSE
org:Alcatel Telecom;Broadband Networking Division
version:2.1
email;internet:Jan.Van_Belle@alcatel.be
adr;quoted-printable:;;de Villermontstraat 38B=0D=0AB2550 Kontich;;;;Belgium
x-mozilla-cpt:;2
fn:Jan Van Belle
end:vcard

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]