473,409 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

#Pragma

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
Jul 22 '05 #1
2 2796
Dirk Zechling wrote:

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.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #2
"Dirk Zechling" <di***********@fh-furtwangen.de> wrote in
news:co***********@fluffy.foo.fh-furtwangen.de:
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.
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Steven T. Hatton | last post by:
Stroustrup says this: http://www.research.att.com/~bs/bs_faq2.html#macro "So, what's wrong with using macros?" "And yes, I do know that there are things known as macros that doesn't...
6
by: Shri | last post by:
Can anybody tell me where i can find a detailed document on #pragma .... --shri
1
by: Gustavo L. Fabro | last post by:
Greetings! Going directly to the point: myclass.h: //-------------------------------------- #pragma managed //Forward declaration
11
by: ramu | last post by:
HI, Can anyone tell me about pragma? And can u give an example of how to use it?
15
by: muttaa | last post by:
Hello all, I'm a beginner in C...May i like to know the difference between a #pragma and a #define.... Also,yet i'm unclear what a pragma is all about as i can find topics on it only in...
8
by: rwen2012 | last post by:
Hi, guys, I am confused with the preprocessor instruction #pragma. What does the #pragma mean? and what does this mean as follow? ==================== #pragma intterupt Timer...
5
by: venkat | last post by:
Hi, I have come across the a pragma definition " #pragma switch direct ". I don't know any thing about pragma's. Even i when i search through google not getting exact information. what does...
26
by: Rick | last post by:
I'm told that "#pragma once" has made it into the ISO standard for either C or C++. I can't find any reference to that anywhere. If it's true, do any of you have a reference I can use? ...
2
by: aleemakhtar1 | last post by:
wat is use of pragma directive in embedded sys ??
0
debasisdas
by: debasisdas | last post by:
PRAGMA:-Signifies that the statement is a pragma (compiler directive). Pragmas are processed at compile time, not at run time. They pass information to the compiler. A pragma is an instruction to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.