Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: NOINIT pragma is unrecognized (TMS320C6000 Compiler 7.4.2)

$
0
0

The NOINIT pragma is not supported in the C6000 compiler.

[quote user="Alexander Lenherr"]How can I force the compiler to not initialize the variable at the indicated location without the NOINIT pragma?[/quote]

Instead of LOCATION, use the DATA_SECTION pragma to place the variable in a section you name.  For example ...

#pragma DATA_SECTION(my_var, "for_my_var")
int my_var;

Then, in the SECTIONS directive in your linker command file, allocate the section to a specific address, and apply the NOINIT section type.

for_my_var run = 0x320, type = NOINIT

Thanks and regards,

-George


Viewing all articles
Browse latest Browse all 91752

Trending Articles



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