13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1−10PCP Reference ManualThe srpn value must be in range 0..255. If R6.SPRN is set to zero, itcauses an illegal operation error on the PCP. When srpn is set to zero,no code is generated for loading R6.SPRN and the interrupt flag in theEXIT instruction is disabled (EXIT EC=0, ST=0, INT=0, EP=1, cc_UC).1.6 PRAGMASPragmas are keywords in the C source that control the behavior of thecompiler. Pragmas overrule compiler options and keywords.For general information on pragmas see section 2.6, Pragmas to Controlthe Compiler, in Chapter PCP C Language of the User’s Manual.The syntax is:or:#pragma pragma−spec [ON | OFF | RESTORE | DEFAULT]_Pragma("pragma−spec [ON | OFF | RESTORE | DEFAULT]")The compiler recognizes the following pragmas, other pragmas areignored. Sometimes the resemblence of a pragma and a compiler option isso strong, that no explanation is given but instead is referred to thedescription of the corresponding compiler option.C LANGUAGE#pragma alias symbol=defined_symbolDefine symbol as an alias for defined_symbol. It corresponds to an equatedirective (.ALIAS) at assembly level. The symbol should not be definedelsewhere, and defined_symbol should be defined with static storageduration (not extern or automatic).See also the .ALIAS directive directive in Section 3.3, Assembler Directivesand Controls, in Chapter Assembly Language.#pragma clear#pragma noclearPerforms ’clearing’ or no ’clearing’ of non−initialized static/public variables.#pragma compactmaxmatch valueControl the maximum size of a match.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!