Motorola DSP56800 Podręcznik Użytkownika Strona 377

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 446
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 376
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
377Targeting MC56F83xx/DSP5685x Controllers
Listing C.2 Unnamed Arguments
void f(int ) {} /* OK, if ANSI Strict is disabled */
void f(int i) {} /* ALWAYS OK */
•A # token that does not appear before an argument in a macro definition. Listing
C.3 shows an example.
Listing C.3 Using # in Macro Definitions
#define add1(x) #x #1
/* OK, if ANSI_strict is disabled,
but probably not what you wanted:
add1(abc) creates "abc"#1 */
#define add2(x) #x "2"
/* ALWAYS OK: add2(abc) creates "abc2" */
An identifier after #endif. Listing C.4 shows an example.
Listing C.4 Identifiers After #endif
#ifdef __MWERKS__
/* . . . */
#endif __MWERKS__ /* OK, if ANSI_strict is disabled */
#ifdef __MWERKS__
/* . . . */
#endif /*__MWERKS__*/ /* ALWAYS OK */
This pragma corresponds to the ANSI Strict setting in the C/C++ Language panel. To
check this setting, use __option (ANSI_strict), described in Checking
Settings. By default, this pragma is disabled.
asmoutput
Controls the generation of an assembly file for each compiled file processed.
Prototype
#pragma asmoutput [on|off]
Przeglądanie stron 376
1 2 ... 372 373 374 375 376 377 378 379 380 381 382 ... 445 446

Komentarze do niniejszej Instrukcji

Brak uwag