View previous topic :: View next topic |
Author |
Message |
pdswar
Joined: 18 Jul 2006 Posts: 33 Location: Maryland, USA
|
what are valid preprocessor directives for #pragma |
Posted: Mon Jul 31, 2006 9:10 am |
|
|
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
|
|
Posted: Mon Jul 31, 2006 11:35 am |
|
|
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
|
thanx |
Posted: Thu Aug 03, 2006 9:54 am |
|
|
Ttelmah, thank you for the info.
I decided not to use #pragma. |
|
|
|