Implementation defined behavior control
Da cppreference.com.
< cpp | preprocessor
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Comportamento di attuazione definito è controllato dalla direttiva
#pragma
.Original:
Implementation defined behavior is controlled by
#pragma
directive.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Indice |
[modifica]Sintassi
#pragma pragma_params | |||||||||
[modifica]Spiegazione
Direttiva Pragma controlla l'attuazione comportamento specifico del compilatore, ad esempio disabilitando gli avvisi del compilatore o mutate esigenze di allineamento. Qualsiasi pragma che non viene riconosciuto viene ignorato.
Original:
Pragma directive controls implementation-specific behavior of the compiler, such as disabling compiler warnings or changing alignment requirements. Any pragma that is not recognized is ignored.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifica]Pragma standard
I seguenti tre pragma sono definiti dal linguaggio standard:
Original:
The following three pragmas are defined by the language standard:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
#pragma STDC FENV_ACCESS arg | (1) | ||||||||
#pragma STDC FP_CONTRACT arg | (2) | ||||||||
#pragma STDC CX_LIMITED_RANGE arg | (3) | ||||||||
dove arg è o
1) ON
o OFF
o DEFAULT
. Original:
where arg is either
ON
or OFF
or DEFAULT
. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Se impostato su
2) ON
, informa il compilatore che il programma accedere o modificare floating-point ambiente, il che significa che le ottimizzazioni che potrebbero sovvertire i test di bandiera e cambiamenti di modalità (ad esempio, l'eliminazione globale sottoespressione comune, il movimento di codice, e piegatura costante) sono proibiti. Il valore di default è definito dall'implementazione, solitamente OFF
.Original:
If set to
ON
, informs the compiler that the program will access or modify floating-point ambiente, which means that optimizations that could subvert flag tests and mode changes (e.g., global common subexpression elimination, code motion, and constant folding) are prohibited. The default value is implementation-defined, usually OFF
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Consente' appalto di espressioni in virgola mobile, che è ottimizzazioni che omettono gli errori di arrotondamento e virgola mobile eccezioni che sarebbero osservati se l'espressione è stata valutata esattamente come è scritto. Il valore di default è definito dall'implementazione, solitamente
3) ON
.Original:
Allows contracting of floating-point expressions, that is optimizations that omit rounding errors and floating-point exceptions that would be observed if the expression was evaluated exactly as written. The default value is implementation-defined, usually
ON
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Informa il compilatore che la moltiplicazione, divisione, e il valore assoluto dei numeri complessi possono usare semplificate formule matematiche, nonostante la possibilità di un overflow intermedio. La gamma dei valori passati a quelli funzione dovrebbe essere limitata. Il valore predefinito è
OFF
Original:
Informs the compiler that multiplication, division, and absolute value of complex numbers may use simplified mathematical formulas, despite the possibility of intermediate overflow. The range of the values passed to those function is expected to be limited. The default value is
OFF
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifica]Collegamenti esterni
- C++ pragmas in Visual Studio 2010
- Pragmas accettata da GCC 4.6.2Original:Pragmas accepted by GCC 4.6.2The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - General Purpose Pragmas in IBM AIX XL C/C++ V7.0
- Appendix B. Pragmas in Sun Studio 11 C + + Guida per l'utente diOriginal:Appendix B. Pragmas in Sun Studio 11 C++ User's GuideThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - Intel C++ compiler pragmas