Írtam egy kis kódrészletet:
// helloworld.c
#include <stdio.h>
#include <limits.h>
int main()
{
printf("Hello Vilag, a maxint ezen a vason: %d\n",INT_MAX);
return 0;
}
Fordításhoz: gcc helloworld.c -o helloworld
Két vason próbáltam (AMD64 és 32 bites ARM):
* helloworld: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), for GNU/Linux 2.6.0, not stripped
* helloworld: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux 2.4.1, not stripped
Mindkét vason ugyanaz a kimenet:
Hello Vilag, a maxint ezen a vason: 2147483647