CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

what are valid preprocessor directives for #pragma

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pdswar



Joined: 18 Jul 2006
Posts: 33
Location: Maryland, USA

View user's profile Send private message

what are valid preprocessor directives for #pragma
PostPosted: Mon Jul 31, 2006 9:10 am     Reply with quote

I was wondering if anyone knew what are some valid preprocessor directives for #pragma in CCS PCH C compiler.

What is an equivalent statement for the following in CCS:
#pragma fastcall Timer8_1_EnableInt

Wikipedia says that " The Register or fastcall calling convention is compiler-specific for historical reasons. In general, however, it states that the few first arguments that fit into a processor's register (i.e. with a size up to 32 bits for x86 architecture) will be passed via registers instead of being put onto the stack."
Ttelmah
Guest







PostPosted: Mon Jul 31, 2006 11:35 am     Reply with quote

Pragma, actually does almost nothing...
It will accept _any_ command that the compiler accepts as a preprocessor directive (device statements, delay statements, etc. etc.). It's 'function', is simply to ensure that these are evaluated _first_.
There is no equivalent to the command you post, since this requires the presence of multiple registers on the processor. The PIC, only has one (8 bit accumulator) register.

Best Wishes
pdswar



Joined: 18 Jul 2006
Posts: 33
Location: Maryland, USA

View user's profile Send private message

thanx
PostPosted: Thu Aug 03, 2006 9:54 am     Reply with quote

Ttelmah, thank you for the info.

I decided not to use #pragma.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group