From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: Andreas.Karlsson@combitechsystems.com Cc: ecos-discuss@sourceware.cygnus.com Subject: RE: [ECOS] Size of downloaded files? Date: Mon, 18 Sep 2000 07:33:00 -0000 Message-id: References: <2253171AF143D21185A60000F8FA748B0229A971@pluto.combitech.se> X-SW-Source: 2000-09/msg00277.html 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.