This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Size of downloaded files?
- To: gthomas at redhat dot com
- Subject: RE: [ECOS] Size of downloaded files?
- From: Andreas dot Karlsson at combitechsystems dot com
- Date: Mon, 18 Sep 2000 17:14:29 +0200
- Cc: ecos-discuss at sourceware dot cygnus dot com
How do I generate a linker map?
I tried with this and with Map at several other places.
/Andreas
arm-elf-gcc -mcpu=arm7di -nostartfiles
-L//d/ecos-work/aeb/config2_install/lib -Map my_mapfile, -Wl,--gc-sections
-o testprog testprog.o receiver.o -Ttarget.ld -nostdlib
arm-elf-gcc: my_mapfile,: No such file or directory
arm-elf-gcc: unrecognized option `-Map'
make: *** [testprog] Error 1
bash-2.04$
> On 18-Sep-2000 Andreas.Karlsson@combitechsystems.com wrote:
> > Hi,
> >
> > Is there any way I can see how much each .c file
> contributes to the size
> > that will be downloaded to the target?
>
> Yes and no. Something simple like:
> find . -name "*.o" -exec arm-elf-size \{} \;
> will show you the rough sizes of the object files.
>
> However, due to selective linking this will be misleading since much
> of what you might see can be left out if you're not actually using it.
>
> You can also generate a linker map to see what sections and
> their sizes
> are part of the final image.
>