This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: SIZEOF_LONG 4 instead of 8 in 64-bits
- From: Ian Lance Taylor <iant at google dot com>
- To: Kraiser <pietiatibia1 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 18 May 2010 10:50:19 -0700
- Subject: Re: SIZEOF_LONG 4 instead of 8 in 64-bits
- References: <28598575.post@talk.nabble.com>
Kraiser <pietiatibia1@gmail.com> writes:
> I need to use #define __SIZEOF_LONG__ 4 instead of #define __SIZEOF_LONG__ 8
> in amd64 so my program will not double the memory usage how Can i do so?
> using debian and gcc 4.4.4
No, there is no support for that. Sorry.
Perhaps you could compile with -Dlong=int. Wouldn't work if you ever
use the long long type, though.
Ian