Nios® V Processor Software Developer Handbook

ID 743810
Date 10/12/2024
Public
Document Table of Contents

15.2.1.2. GCC C/C++ 32-bit Processor Constants

Table 48.  Examples of How to Format GCC C/C++ 32-bit Processor Constants
C Data Type Examples
boolean (char, short, int) 1, 0
32-bit signed integer (int, long) 123, -50
32-bit unsigned integer (unsigned int, unsigned long) 123u, 0xef8472a0
64-bit signed integer (long long int) 4294967296LL, -4294967296LL
64-bit unsigned integer (unsigned long long int) 4294967296ULL, 0xac458701fd64ULL
32-bit floating-point (float) 3.14f
64-bit floating-point (double) 2.78, 314e-2
character (char) 'x'
string (const char*) "Hello World!"