File size increases significantly after objcopy
C Jaiprakash, Noida
cjaiprakash@hcltech.com
Thu Nov 25 13:22:00 GMT 2004
Hi,
I am building colilo for a coldfire (v4e) target. I am facing a strange
problem. If i build colilo with -O0 option and convert the ELF binary to
bnary, srec format following are the resulting file sizes
-rwxr-xr-x 1 cjaiprakash coldfire 93K Nov 25 18:58 colilo.bin
-rwxr-xr-x 1 cjaiprakash coldfire 123K Nov 25 18:58 colilo.elf
-rw-r--r-- 1 cjaiprakash coldfire 279K Nov 25 18:58 colilo.s19
-rw-r--r-- 1 cjaiprakash coldfire 279K Nov 25 18:58 colilo.srec
But when i build the colilo with -O2 option file size increase
significantly, following are the sizes
-rwxr-xr-x 1 cjaiprakash coldfire 17M Nov 25 19:01 colilo.bin
-rwxr-xr-x 1 cjaiprakash coldfire 107K Nov 25 19:01 colilo.elf
-rw-r--r-- 1 cjaiprakash coldfire 49M Nov 25 19:01 colilo.s19
-rw-r--r-- 1 cjaiprakash coldfire 49M Nov 25 19:01 colilo.srec
ELF binary size is ok but why the file sizes for bin, srec are so huge?
Thanks and best regards,
C Jaiprakash
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Contributing to the World by creating indispensable value !
System Software CoE @ HCLT-Noida
http://www.hcltechnologies.com
Ph. : +91-120-2510701/702 Ext : 3170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Binutils
mailing list