• Not Answered

IAR Build Message

Building configuration: test - Debug
Updating build tree...
F:\stellaris program\start\Debug\Obj\rit128x96x4.o
F:\stellaris program\start\Debug\Obj\startup_ewarm.o
F:\stellaris program\start\Debug\Obj\timer.o
F:\stellaris program\start\Debug\Obj\rit128x96x4.pbi
F:\stellaris program\start\Debug\Obj\startup_ewarm.pbi
F:\stellaris program\start\Debug\Obj\timer.pbi
F:\stellaris program\start\Debug\Exe\test.out
F:\stellaris program\start\Debug\Exe\test.hex
F:\stellaris program\start\Debug\Obj\test.pbd
 
9  file(s) deleted.
Updating build tree...
 
rit128x96x4.c  
iccarm.exe F:\stellaris program\start\rit128x96x4.c -D ewarm -D PART_LM3S8962 -o F:\stellaris program\start\Debug\Obj\
 --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little  
--cpu=Cortex-M3 -e --fpu=None --dlib_config E:\program files\iar\arm\INC\DLib_Config_Normal.h -I C:\StellarisWare\ -I C:\
StellarisWare\boards\ek-lm3s8962\ -I E:\program files\iar\arm\INC\ -Ol
 
   IAR ANSI C/C++ Compiler V5.50.5.31995/W32 KICKSTART for ARM
   Copyright (C) 1999-2010 IAR Systems AB.  
 
 1 090 bytes of CODE  memory
   574 bytes of CONST memory
    12 bytes of DATA  memory
 
Errors: none
Warnings: none
 
startup_ewarm.c  
iccarm.exe F:\stellaris program\start\startup_ewarm.c -D ewarm -D PART_LM3S8962 -o F:\stellaris program\start\Debug\
Obj\ --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little  
--cpu=Cortex-M3 -e --fpu=None --dlib_config E:\program files\iar\arm\INC\DLib_Config_Normal.h -I C:\StellarisWare\ -I C:\
StellarisWare\boards\ek-lm3s8962\ -I E:\program files\iar\arm\INC\ -Ol
 
   IAR ANSI C/C++ Compiler V5.50.5.31995/W32 KICKSTART for ARM
   Copyright (C) 1999-2010 IAR Systems AB.  
 
   6 bytes of CODE  memory
 240 bytes of CONST memory
 256 bytes of DATA  memory
 
Errors: none
Warnings: none
 
timer.c  
iccarm.exe F:\stellaris program\start\timer.c -D ewarm -D PART_LM3S8962 -o F:\stellaris program\start\Debug\Obj\  
--no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little  
--cpu=Cortex-M3 -e --fpu=None --dlib_config E:\program files\iar\arm\INC\DLib_Config_Normal.h -I C:\StellarisWare\ -I C:\
StellarisWare\boards\ek-lm3s8962\ -I E:\program files\iar\arm\INC\ -Ol
 
   IAR ANSI C/C++ Compiler V5.50.5.31995/W32 KICKSTART for ARM
   Copyright (C) 1999-2010 IAR Systems AB.  
 
 158 bytes of CODE  memory
   1 byte  of CONST memory
   1 byte  of DATA  memory
 
Errors: none
Warnings: none
 
Linking
ilinkarm.exe C:\StellarisWare\driverlib\ewarm\Exe\driverlib.a F:\stellaris program\start\Debug\Obj\rit128x96x4.o F:\
stellaris program\start\Debug\Obj\startup_ewarm.o F:\stellaris program\start\Debug\Obj\timer.o -o F:\stellaris program\
start\Debug\Exe\test.out --config E:\program files\iar\arm\CONFIG\generic_cortex.icf --semihosting --entry  
__iar_program_start
 
   IAR ELF Linker V5.50.5.51995/W32 for ARM
   Copyright (C) 2007-2010 IAR Systems AB.
 
  1 184 bytes of readonly  code memory
    288 bytes of readonly  data memory
    268 bytes of readwrite data memory
 
Errors: none
Warnings: none
 
Link time:   0.05 (CPU)   0.05 (elapsed)
 
test.out
Converting
ielftool.exe --ihex --verbose F:\stellaris program\start\Debug\Exe\test.out F:\stellaris program\start\Debug\Exe\test.hex
     IAR ielftool V1.7 [BUILT 2010-06-29]
     Copyright (C) 2007-2009 IAR Systems AB.
Loading F:\stellaris program\start\Debug\Exe\test.out
Saving ihex file to F:\stellaris program\start\Debug\Exe\test.hex
 
Total number of errors: 0
Total number of warnings: 0

1. I don't understand how much memory been taken by  ram or rom.

2. rit128x96x4.c  have  1 090 bytes of CODE  memory
   574 bytes of CONST memory
    12 bytes of DATA  memory

Const & code menory goes to rom right. Data memory goes to ram .? I am not sure about it.

If yes, then here code menory 1090 bytes includes const menory or its separate here.

3.   1 184 bytes of readonly  code memory
    288 bytes of readonly  data memory
    268 bytes of readwrite data memory

What does this mean read only data memory mean????/


1 Reply

  • Apologies for a delayed response.

     

    Read Only typically means the data that is in the form of some type of constant data.  This is stored in device flash.  Read Write Data is stored in RAM.  Code is stored in Flash.  All of this is by default.  The linker can be configured to place any of these items to any location you chose and configure in the linker project settings. By default the size of read only + code is how much flash was consumed, the rest is RAM.

    The IAR manuals will have lots more information about what this means and how they interpret the information.    Also look at the map files that the linker can generate for much more detailed view of what is being placed where in memory. 

     

    Dexter