Binary is twice bigger

Ralf Corsepius corsepiu at faw.uni-ulm.de
Tue Dec 23 10:24:57 UTC 2003


On Tue, 2003-12-23 at 09:58, Leon Pollak wrote:
> Hello, all.
> 	Some time ago I ported one of my applications from RTEMS version 4.0.3 (also 
> ported to CodeWarrior in Windows) to RTEMS 4.6 (pre-last snapshot) in Linux.
> 	I used the basic configuration (without networking) with miniIMFS with RTEMS 
> API and without any other options (I hope so). I want to remind, that 4.0.3 
> RTEMS version was a "pure" kernel version yet, without IMFS and Co.
> 	As the result, I can compare the size of working binary in this 2 cases (both 
> without optimizations).
> 	The size of Windows/CodeWarrior version is 173KB. The size of GDB/Linux 
> version is 349KB - twice bigger!!!
GDB/Linux? What do you mean by this?

Anyway, I'll presume you mean the size of RTEMS executables.

Which compilers? Which target? 

Which options? What happens if you turn on optimization (the sizes gcc
produces can vary extremely between optimization levels. I've seen
factor 2-4 with the sh1.)

Which language? Esp. C++ has changed significantly between gcc-versions
and can produce large binaries.

> 	I am very interested in comments of gurus on the item. Thanks ahead.
What exactly did you compare (Which binaries)? 

The only figures that matter are the sizes of the sections being applied
inside of a download image not the size of the files.

And ... you could try to apply objdump, gcc  -Wl,-Map etc. to find out
what actually has increased.

Lots of questions, I know, but without knowing the details, probably
nobody will be able to answer nor to help.

Merry Christmas,

	Ralf





More information about the users mailing list