[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking $host for 64-bit code generation

From: Ralf Wildenhues
Subject: Re: Checking $host for 64-bit code generation
Date: Mon, 23 Jun 2008 20:39:14 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hi John,

* John Calcote wrote on Mon, Jun 23, 2008 at 08:26:09PM CEST:
> Is there a community-approved method for determining in
> whether or not you're building (targeting) 64-bit code?

What is 64-bit code, and why do you need to know in your program?

Both are serious questions, and LONG_MAX/ULONG_MAX, CHAR_BIT and
AC_CHECK_SIZEOF for int, long, or a pointer type, may be part of
the answer to your question.  Of course, many programs don't need
to know or check for any of this at all and are still portable to
"64-bit" systems, or even systems with 48 bit types, which is Good.

Checking $host is likely not what you would want, as for
  ./configure CC='gcc -m32'

on x86_64-unknown-linux-gnu, it may match.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]