Implementation defined behavior control
De cppreference.com
< cpp | preprocessor
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Comportement défini par l'implémentation est contrôlé par la directive
#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.
Sommaire |
[modifier]Syntaxe
#pragma pragma_params | |||||||||
[modifier]Explication
Directive Pragma contrôle spécifique à l'implémentation comportement du compilateur, telles que la désactivation des avertissements du compilateur ou de l'évolution des besoins d'alignement. Toute pragma qui n'est pas reconnu est ignoré .
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.
[modifier]Pragmas standard
Les trois suivantes pragmas sont définis par la norme langue:
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) | ||||||||
où arg est soit
1) ON
ou OFF
ou 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.
S'il est réglé sur
2) ON
, signale au compilateur que le programme peut accéder ou modifier virgule flottante environnement, ce qui signifie que les optimisations qui pourraient subvertir les tests du pavillon et changement de mode (par exemple, l 'élimination de sous-expressions communes, déplacement de code et constantes) sont interdits. La valeur par défaut est définie par l'implémentation, généralement OFF
.Original:
If set to
ON
, informs the compiler that the program will access or modify virgule flottante environnement, 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.
Permet' traitance des expressions en virgule flottante, c'est-optimisations qui omettent des erreurs d'arrondi en virgule flottante et les exceptions qui seraient observés si l'expression a été évaluée exactement comme écrit. La valeur par défaut est définie par l'implémentation, généralement
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.
Informe le compilateur que la multiplication, la division, et la valeur absolue des nombres complexes peuvent utiliser des formules mathématiques simplifiés, en dépit de la possibilité de débordement intermédiaire. La gamme des valeurs transmises à ceux de fonction devrait être limitée. La valeur par défaut est
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.
[modifier]Liens externes
- C++ pragmas in Visual Studio 2010
- Pragmas acceptée par 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 à Sun Studio 11 C + + Guide de l'utilisateur deOriginal: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