EmbDev.net

Forum: ARM programming with GCC/GNU tools WinARM vs Yagarto


Author: Joe Dupre (jdupre)
Posted on:

Rate this post
0 useful
not useful
I'm comparing WinARM (20060606) and Yagarto (20080928) with identical
build options on the same project.  I find that the ELF produced is
similar in file size, but when it comes to creating a binary,
arm-elf-objcopy from yagarto produces a binary that is 2.5 times larger
than WinARM.  Why is this?

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Joe Dupre wrote:
> I'm comparing WinARM (20060606) and Yagarto (20080928) with identical
> build options on the same project.  I find that the ELF produced is
> similar in file size, but when it comes to creating a binary,
> arm-elf-objcopy from yagarto produces a binary that is 2.5 times larger
> than WinARM.  Why is this?

Maybe there are "holes" since the are values in the load-image which
should not be there (i.e. for locations in RAM). Open the binary with a
hex-editor an see if there are very long sequences of the same value and
create a hex-file and look for larger steps in the addresses. WinARM
2006006 uses a rather old version of the binutils the ones in the
current Yagarto are much newer. Check the linker-scrip for a correct
entry-setting and "noload" for sections which should not go into the
load-image (i.e. sections for "heap" and "stack").

If nothing helps create two minimal but complete examples which show the
difference and attach them to a message here include the output of
objdump, the symbol-file and the map-file created during the two builds
if possible.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.