Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Compiler/TMS320C6678: Memory model for a library

$
0
0

Part Number:TMS320C6678

Tool/software: TI C/C++ Compiler

Hello compiler experts

In my field we use a middleware to abstract the OS and HW archictecture and software applications are built on top of this middleware.
The HW is composed of DSP C6678.
The middleware is a library designed to run on this DSP.

Here are the compilation options I use to build the library:

-mv6600 --abi=eabi -mi10 --gen_func_subsections=on -Ooff -g

(we volontary choose to let the library fully debuggable)

By default the memory model is --mem_model:data=far_aggregates.

The application compilation options are:

-mv6600 --abi=eabi -mi10 --mem_model:data=far_aggregates

We put initialization code in DDR3 memory (because performance is not needed at initialization), other code is in L2 (for performance).
We notice quite a lot of trampolines call but I'm not worried about them due to some of the code being in DDR3.


I have read the Wiki on C6000 Memory models and the application report SPRAA46A

My questions are:

- Should I default to the "near" memory model for the library ?

- Should I use other important options for the library that I missed ? (do you have suggestions)

Thanks
Regards
Clement


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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