Re: spinlocks on powerpc - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: spinlocks on powerpc
Date
Msg-id 1325262402.11282.3.camel@vanquo.pezone.net
Whole thread Raw
In response to spinlocks on powerpc  (Manabu Ori <manabu.ori@gmail.com>)
List pgsql-hackers
On fre, 2011-12-30 at 14:47 +0900, Manabu Ori wrote:
> If we can decide whether to use the hint operand when we build
> postgres, I think it's better to check if we can compile and run
> a sample code with lwarx hint operand than to refer to some
> arbitrary defines, such as FOO_PPC64 or something.
> 
But you can't be sure that the host you are running this on has the same
capability as the build system.  Packaging systems only classify
architectures on broad categories such as "i386" or "powerpc" or maybe
"powerpc64".  So a package built for "powerpc64" has to run on all
powerpc64 hosts.

Imagine you are using some Pentium instruction and run the program on a
80486.  It's the same architecture as far as kernel, package management,
etc. are concerned, but your program will break.




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: spinlocks on powerpc
Next
From: Andrew Dunstan
Date:
Subject: Re: spinlocks on powerpc