Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Gomez said:
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

I am using code composer essentialo
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top