Re: spinlocks on powerpc

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: spinlocks on powerpc
Дата
Msg-id 1325262402.11282.3.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на spinlocks on powerpc  (Manabu Ori <manabu.ori@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: spinlocks on powerpc
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: spinlocks on powerpc