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

Compiler/TMS320F28377S: pragma FUNCTION_OPTIONS not overriding project flags

$
0
0

Part Number:TMS320F28377S

Tool/software: TI C/C++ Compiler

Hi,

I am using compiler TI v15.12.1.LTS for the F28377s, and CCS 7.0.x.  I have a function containing a loop that I have hand optimized with NOPs to execute in exactly 250 clocks.  So I would like to be able to modify the project's compiler optimizations while holding this function with no optimizations so my loop remains constant.  However, whether I set the project to -O0 and the FUNCTION_OPTIONS pragma to

#pragma FUNCTION_OPTIONS (send_led_data, "--opt_level=3")

or vice-versa, it appears that the function send_led_data is still being compiled with the project's -Ox flag and the pragma is ignored.  Perhaps I am missing some other setting to make FUNCTION_OPTIONS work?

Thanks, dave


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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