GCC a velka cisla

Miroslav BENES mbenes na tenez.cz
Čtvrtek Listopad 27 14:17:56 CET 2003


$ gcc -c big.c

$ gcc -std=c99 -c big.c

$ gcc -o test test.o

$ ./big
1000000000
5294967296
malloc: Cannot allocate memory

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-
linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --
mandir=/usr/share/man --infodir=/usr/share/info --enable-shared -
-enable-threads=posix --disable-checking --with-system-zlib --
enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

--------------------------
Miroslav BENES
E-mail   : mbenes na tenez.cz
TENEZ Chotebor, a.s
--------------------------



Další informace o konferenci Linux