Cray CX1000 Guía de usuario Pagina 137

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 169
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 136
Data Types [E]
This chapter provides information about the C and C++ language data types that
you can use with Cray XMT compilers.
The floating-point types are float, double, and long double. Their sizes are
4, 8, and 16 bytes, respectively.
The integer types short and unsigned short are each 4 bytes long. The data
types int, long, long long, and their unsigned equivalents are each 8 bytes
long. The compiler flag -short16 converts all short and unsigned short
integers to 2 bytes. The compiler flag -i4 converts all short and unsigned
short integers to 2 bytes and all int and unsigned int to 4 bytes.
The two character types char and unsigned char are each 1 byte long.
Additionally, the C++ compiler supports a 1-byte boolean type, bool, and the
boolean constants true and false. The compiler flag -no_bool turns off
recognition of these three keywords.
S247920 137
Vista de pagina 136
1 2 ... 132 133 134 135 136 137 138 139 140 141 142 ... 168 169

Comentarios a estos manuales

Sin comentarios