Motorola DSP56800 Guía de usuario Pagina 424

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 446
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 423
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
424
Targeting MC56F83xx/DSP5685x Controllers
Remarks
If you enable this pragma, the compiler issues a warning for all implicit arithmetic
conversions when the destination type might not represent the source value. Listing
C.26 provides an example.
Listing C.26 Example of Implicit Conversion
#pragma warn_implicitconv on
float f;
signed int si;
unsigned int ui;
int main()
{
f = si; // OK
si = f; // WARNING
ui = si; // WARNING
si = ui; // WARNING
}
The default setting for warn_impl_i2fconf pragma is disabled. Use the
warn_implicitconv pragma along with the warn_impl_i2f_conv pragma
to generate the warning for the int-to-float conversion.
This pragma corresponds to the Implicit Arithmetic Conversions setting in the C/
C++ Preprocessor panel. To check this setting, use __option
(warn_implicitconv), described in Checking Settings
. By default, this
pragma is disabled.
warn_largeargs
Controls the issuing of warnings for passing non-integer numeric values to
unprototyped functions.
Prototype
#pragma warn_largeargs on | off | reset
Vista de pagina 423
1 2 ... 419 420 421 422 423 424 425 426 427 428 429 ... 445 446

Comentarios a estos manuales

Sin comentarios