GRMON load question

Jiri Gaisler jiri at
Mon Mar 14 20:21:52 UTC 2011

Matthews, Lee wrote:
> Hi All
> I’m developing for  an Aeroflex Gaisler LEON3 processor that is running on a Pender
> GR-CPCI-AX2000 development board using RTEMS.
> I use the following statement to compile my source code : sparc-rtems-gcc -O2 -g sourcecode.c -o
> outputexecutable.exe
> This produces a file that is around 2,3MB is size. Yet, when I try uploading the file using GRMON
> (using the 'load' command), it only uploads about 157KB. Why the difference in size?  Is the
> remaining 2,1MB superfluous somehow?

File size and image size is not the same thing. Use sparc-rtems-size to see the
actual size of your application. The rest is symbol tables and debug information
which are not loaded on the target. Google for elf.pdf if you want to understand
how an elf file is laid out.


> Thanks in advance,
> Lee Matthews
> _______________________________________________ rtems-users mailing list rtems-users at 

More information about the users mailing list