Project

General

Profile

Mapping code to IRAM

Added by Marc Lichtman over 12 years ago

Hey All,

I am using CCS4 and SYS/BIOS to program the DSP core in the L138, and I am trying to figure out how to specify the linker option so that a certain C function gets mapped into IRAM, instead of DDR. When I look at the C/C++ Build settings in CCS and go to linker settings, I dont see anything that would let me do this. I tried to make a new .cmd file that contained the code below, and add it as an input command file, but it did not seem to work. Any help would be much appreciated.

SECTIONS {
.text:myfunc > IRAM
}

-Marc


Replies (2)

RE: Mapping code to IRAM - Added by Thomas Catalino over 12 years ago

Hi Marc -

I'm not sure we will have the answer to this question as it's really a TI question. While we're waiting for a response from my team you may also wish to post it on the TI e2e forums.

Tom

RE: Mapping code to IRAM - Added by Mads Lind Christiansen over 12 years ago

Hi Mark

You could try the #pragma CODE_SECTION(<function name>, "mysect") (In C++ you omit the function name and places the pragma before the declaration). You will probably have to define your own section in the CMD file.

Look at the TMS320C6000 Optimizing Compiler User’s Guide

/Mads

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)