Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Compiler/OMAP-L138: Mapping of the .obj file on RAM

$
0
0

Part Number:OMAP-L138

Tool/software: TI C/C++ Compiler

Hi guys,

I have a question for you. I have a class which has some functions to be placed on L2 Ram (to execute them fast) and some functions to be placed on DDR Ram (no need to execute it so fast). Let's call this class as "MyClass". For MyClass, I have a

-MyClass.h file for function declarations etc.

-MyClass.cpp file for definitions of functions on L2 ram 

-MyClassDDR.cpp file for definitions of functions on DDR ram. I have created 2 cpp files to easily see L2 and DDR functions. 

If I compile this class I can see in .map file that there is a MyClassDDR.obj is placed on L2Ram. 

118078a0    00000b20     MyClassDDR.obj (.text:__sti___24_MyClassDDR_cpp_a14d4620)

But I am 100% sure that all the functions defined in this cpp has a pragma  CODE_SECTION(".ddr_code") which tells the compiler to put them in the DDR ram. And I can also see in map file that all functions are placed on DDR. No problem with that, but I couldn't understand this object above which is sitting on L2 ram. Do you have any idea?

Thanks in advance,

Hakan


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>