This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: -fdefault-integer-8 in c
- From: "John (Eljay) Love-Jensen" <eljay at adobe dot com>
- To: José Luis García Pallero <jgpallero at gmail dot com>, "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 10 Mar 2010 03:55:48 -0800
- Subject: RE: -fdefault-integer-8 in c
- References: <323eda51003091441l1c6292a2t66a737ae57833751@mail.gmail.com>
Hi José,
Is there any reason you can't use int64_t from <stdint.h>?
Or use int64_t indirectly by:
#include <stdint.h>
typedef int64_t matrix_index;
The difficulty then will be to scrub your code to replace your int index types with matrix_index index type.
On a 64-bit machine, where the natural word size is 64, I think that int should be 64-bit. But apparently my preferences are not in vogue.
On all the 64-bit machines I use, int is half-word size (32-bit).
Sincerely,
--Eljay