[ECOS] Large executables - EDB7211-2
Gary Thomas
gthomas@cambridge.redhat.com
Fri Jun 8 09:17:00 GMT 2001
On 08-Jun-2001 Trenton D. Adams wrote:
> I'm getting extremely large executables from the eCos repository test
> programs. They are all over 3.5MB. Does this sound right? A simple
> test can't be that big, can it? Talk about extremely bad optimization.
Code+data size, or file size? What you are probably seeing is the size
of the actual file which contains boatloads of debug information. None
of this gets loaded to the target.
The actual size of the code+data will be highly dependent on your configuration,
but rest assured, it _is_ optimized.
Here's an example. A test program on the iPAQ, eCos with TCP/IP networking
included.
$ ls -l tm_basic
-rwxrwxr-x 1 gthomas gthomas 4065427 Apr 3 07:08 tm_basic
$ arm-elf-size tm_basic
text data bss dec hex filename
251092 106556 11910780 12268428 bb338c tm_basic
So even though the file "size" is over 4M, the actual code+data (what gets
loaded to the target) is only 360K or so.
More information about the Ecos-discuss
mailing list