Question about pragma directives in Code Composer

Status
Not open for further replies.

london

Member level 4
Joined
Jun 30, 2006
Messages
79
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,945
#pragma DATA_SECTION(variable, memorylication)
eg:
#pragma DATA_SECTION(Lock_f, ".infoB")
i thing, this variable will be created in segmentB ie flash information memory

if i want to have a variable in flash main memory how to change above program line
 

Re: C lang

which compiler?
Pragma directives are quite different on different compilers.

In general you has to define a section in a header file for data, code ...
With the pragma directive you can say the compiler to create the variable in the special section.

Gomez
 

Re: C lang


I am using code composer essentialo
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…