This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

RE: Size of downloaded files?



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.

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