Renesas TM V.3.20A Especificaciones Pagina 238

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 762
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 237
Renesas Technology, Tools FAQs
Last Updated: February 4, 2000
Document Number: 01051081_e
Q.
When I include several floating-point constants in an expression in C program, sometimes the constants are not combined to a
constant during the compile? Why not?
A.
The compiler tries to determine whether the constant expression can be replaced by a constant according to the arithmetic operation
order. In the floating decimal operation, the deviation may change due to rounding, therefore the compiler can not change the order
of the operations on its own.
For example, if deg is the int form variable, the expression deg * 3.14/180 can not be changed to constant deg * 3.14 and, as a result,
the instruction for this operation is generated (in other words, it can not be replaced by a constant). On the other hand, an expression
like 3.14/180 * deg can become constant 3.14/180, and the operation is executed and the expression is replaced by a constant.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Vista de pagina 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 761 762

Comentarios a estos manuales

Sin comentarios