On my Solaris 10 update 9 system the following command yields:
#isainfo -b
64
But if I create the following program in C with limits.h is included I get:
#include <stdio.h>
#include <limits.h>
int main(void)
{
printf("Maximum integer value on this system is = %d\n", INT_MAX);
}
gcc on64.c -o on64 ./on64 Maximum integer value on this system is = 2147483647
I was expecting a much bigger result because the system runs on 64 bit. This seems like a 32 bit result. Is this a compiler issue?