Re: [pgsql-advocacy] [GENERAL] Postgresql & AMD x86-64 - Mailing list pgsql-hackers

From Manfred Spraul
Subject Re: [pgsql-advocacy] [GENERAL] Postgresql & AMD x86-64
Date
Msg-id 3F184E6D.2040000@colorfullife.com
Whole thread Raw
In response to Re: [pgsql-advocacy] [GENERAL] Postgresql & AMD x86-64  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [pgsql-advocacy] [GENERAL] Postgresql & AMD x86-64  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:

>  if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
>    CFLAGS="$CFLAGS -g"
>  fi
>+ 
>+ /* Compile AMD Opteron using gcc in 64-bit mode */
>+ if test "$GCC" = yes; then
>+ case $host in
>+   ia64-*)  CFLAGS="$CFLAGS -m64"
>+            LDFLAGS="$LDFLAGS -melf_x86_64";;
>+ esac
>+ fi
>+ 
>
Sorry, I think I confused you:
ia64-* is Intel's Itanium system. They are 64-bit only cpus (the 32-bit 
emulation is too slow to be usable). It's supported by multiple 
operating systems, among them HP UX, Linux, Windows. As far as I can see 
it's supported directly, by 7.3.3, at least RedHat builds their ia64 
version without any patches.
x86_64 is AMD's Operon/Athlon 64 system. They support concurrent 32-bit 
and 64-bit. Right now only supported by Linux, BSD and Windows support 
expected soon.
Thus the test must be for "x86_64-*".

Martin: you are using debian-testing, correct? I've asked a Suse 
developer, and on their Linux distribution, -m64 is the default, i.e. 
you don't need any switches.

--   Manfred



pgsql-hackers by date:

Previous
From: "Paulo Scardine"
Date:
Subject: SELECT FOR UPDATE NOWAIT
Next
From: Rod Taylor
Date:
Subject: Re: SELECT FOR UPDATE NOWAIT