This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: Using "MEMORY CONFIGURATION" data from Linker generated Memory Map



Tool/software: TI C/C++ Compiler

Hello all,

I am building a ROMFS for a TI multi-core chip (TMS320C6670). Each of the four cores has a .out executable loaded and each .out executable has an associated memory map.

At the top of a memory map, there is a section called "MEMORY CONFIGURATION" that details the origin, length, used amount, unused amount, and read/write/executable attributes for each memory area as configured in the RTSC Tools Platform GUI.

I would like to know if there is a way to extract the linker generated memory configuration from a core's .out executable, and use this information when building a ROMFS. Is there a way to create a ROMFS memory map?

Thanks in advance.

  • Rawley Dent said:
    I would like to know if there is a way to extract the linker generated memory configuration from a core's .out executable

    You can get most (but not all) of it by using the Object File Display utility ofd6x.  This is an executable that is part of the compiler package.  You can read more about it in the C6000 assembly tools manual.

    Since you want to process the information, you probably would use the -x option to generate the information in XML format.  Examples of processing that XML can be found in the cg_xml package.  

    As for that (but not all) ... I don't think the .out file contains all the information to needed to completely reproduce the memory map supplied by the user in either the RTSC configuration, or the linker command file.  If that ends up being important ... Consider using the XML form of the map file you get when you use the linker option --xml_link_info=file.xml .  Just like with the XML from ofd6x, there are example scripts in the cg_xml package which process this map file XML.

    Thanks and regards,

    -George