#Pragma

D

Dirk Zechling

Hello out There,

i've got some Problems by moving an example code with #pragma directives to
a new Microcontroller, where the C-Compiler don't know anything about
pragmas.

Code:
#########################################
#define CALL_FROM_ISR #pragma interrupt_level 1

#pragma interrupt_level 1
void AddressingSoccom( WORD Address, BYTE Command )
{...}
#########################################

The Example Code was written on a Microchip pic18f452.

Can anyone help me?

Best regards

Dirk Zechling
 
A

Andre Kostur

Hello out There,

i've got some Problems by moving an example code with #pragma
directives to a new Microcontroller, where the C-Compiler don't know
anything about pragmas.

Code:
#########################################
#define CALL_FROM_ISR #pragma interrupt_level 1

#pragma interrupt_level 1
void AddressingSoccom( WORD Address, BYTE Command )
{...}
#########################################

The Example Code was written on a Microchip pic18f452.

Can anyone help me?

Not in comp.lang.c++. #pragma is by definition compiler-specific. You
must ask in whatever newsgroups are specific to your compilers (the old one
to find out what the #pragma does, the new one to find out how to do the
same thing in the new compiler), or if one does not exist, you'll probably
have to contact the compiler vendor directly.
 
K

Karl Heinz Buchegger

Dirk said:
Hello out There,

i've got some Problems by moving an example code with #pragma directives to
a new Microcontroller, where the C-Compiler don't know anything about
pragmas.

Pragma's are always system dependent. You need to ask
the experts dealing with your particular compiler.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top