Code size for "Hello World"
Corrin Meyer
Corrin.Meyer at dornerworks.com
Fri Jun 27 16:53:42 UTC 2008
I am trying to compile the ubiquitous hello world application for a
ColdFire M52235EVB board and I am running into issues. I issue the
command...
m68k-elf-gcc -T m52235evb-ram-hosted.ld -mcpu=m52235 hello.c -o hello
And I get the following errors...
c:/program files/codesourcery/sourcery g++
lite/bin/../lib/gcc/m68k-elf/4.2.3/../../../../m68k-elf/bin/ld.exe:
hello section .text will not fit in region ram
c:/program files/codesourcery/sourcery g++
lite/bin/../lib/gcc/m68k-elf/4.2.3/../../../../m68k-elf/bin/ld.exe:
region ram overflowed by 7872 bytes
collect2: ld returned 1 exit status
If I compile with the "m52235evb-rom-hosted.ld" script, it compiles but
the resultant load binary (created from the generated elf) is 40k. I
have seen examples using the RAM hosted script which leads me to believe
that it should work (or has at least worked in the past). I know that I
am using Newlib, but I didn't expect it to add nearly 40k of code. Is
there a way to shrink it?
Corrin J. Meyer
DornerWorks, Ltd.
Embedded Systems Engineering
T: 616.389.8336
F: 616.245.8372
E: corrin.meyer at dornerworks.com <mailto:corrin.meyer at dornerworks.com>
3445 Lake Eastbrook Blvd. SE
Grand Rapids, MI 49546
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20080627/43379c71/attachment.html>
More information about the coldfire-gnu-discuss
mailing list