.map파일에서 'N/A(command line)'란 무엇입니까?

기술노트 13971






2018-02-28 오전 2:52


It is space that is allocated based on some specific placement commands.

Placement command example

Look at these commands for the IAR XLINK Linker:


These commands will allocate the segment MYSEGMENT on address 4000 and upwards. 0x8000 (SPACE) additional bytes will also be allocated at the end of MYSEGMENT. If MYSEGMENT had a size of 0x45678 bytes it will show up as 0x4D678 bytes (0x45678 + 0x8000) in the segment map (it will occupy 0x4000 - 0x51677), the module map will show N/A (command line) 32 768 (0x8000) if SPACE was the only extra space.

This is listed in this way as the extra space allocated in the placement commands isn't a part of the program, they do not reside in a module, they are just there because they were defined on the command line. This is primarily used to set the size of the stack and the heap in an easily configurable way.


The name is due to the "Linker point of view". The Linker doesn't know of any Compiler and/or Assembler tools. The Linker just link "relocatable CODE and DATA modules" into output, placed in the available memory. As the DATA (that we discuss) is not relocatable, it enters the Linker in another fashion. And from the "Linker point of view" the "fixed placed DATA" is additional input from the command line.

All product names are trademarks or registered trademarks of their respective owners.

죄송하지만, 당사 사이트에서는 Internet Explorer를 지원하지 않습니다.보다 편안한 사이트를 위해 Chrome, Edge, Firefox 등과 같은 최신 브라우저를 사용해 주시길 부탁드립니다.