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. |
Implementación define el comportamiento es controlado por la directiva
#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.
Contenido |
[editar] Sintaxis
#pragma pragma_params
|
|||||||||
[editar] Explicación
Directiva Pragma controla el comportamiento específico de la implementación del compilador, por ejemplo, deshabilitar las advertencias del compilador o el cambio de los requisitos de alineación. Cualquier pragma que no se reconoce es ignorado .
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.
[editar] Pragmas estándar
Los siguientes tres pragmas están definidos por el estándar del lenguaje:
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) | ||||||||
donde arg es o bien
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.
Si se establece en
2) ON
, informa al compilador que el programa podrá acceder ni modificar de punto flotante de medio ambiente, lo que significa que las optimizaciones que pueden subvertir las pruebas de la bandera y los cambios de modo (por ejemplo, la eliminación de subexpresiones comunes globales, el movimiento de código y plegado constante) están prohibidos. El valor predeterminado está definido por la implantación, por lo general OFF
.Original:
If set to
ON
, informs the compiler that the program will access or modify de punto flotante de medio 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.
Permite' contratación de expresiones de coma flotante, es decir optimizaciones que omiten los errores de redondeo y excepciones de punto flotante que se observarían si la expresión se evalúa exactamente como está escrito. El valor predeterminado está definido por la implantación, por lo general
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 al compilador que la multiplicación, la división, y el valor absoluto de los números complejos pueden utilizar fórmulas matemáticas simplificadas, a pesar de la posibilidad de desbordamiento intermedio. El rango de los valores pasados a aquellos función se espera que sea limitado. El valor por defecto es
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.
[editar] Enlaces externos
- C++ pragmas in Visual Studio 2010
- Pragmas aceptado por 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 en Sun Studio 11 C + + Guía del usuario 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