Re: GCC builtins for atomic-test-and-set, memory barries, and such - Mailing list pgsql-hackers

From Derek E. Lewis
Subject Re: GCC builtins for atomic-test-and-set, memory barries, and such
Date
Msg-id Pine.A41.4.64.0709240023240.290974@hatsya.orion.const
Whole thread Raw
In response to Re: GCC builtins for atomic-test-and-set, memory barries, and such  ("Jonah H. Harris" <jonah.harris@gmail.com>)
List pgsql-hackers
On Mon, 24 Sep 2007, Jonah H. Harris wrote:

> I agree.  I'd prefer to know exactly what's going on in the atomic
> code (rather than having the compiler take care of it for me).
> Similarly, it's pretty rare to use GCC on anything but Linux and the
> *BSDs as each proprietary UNIX vendor has their own compiler optimized
> for their own architectures and operating systems.

Absolutely. GCC seems to be the 'one size fits all' of compilers, meaning 
that it generally isn't the best at optimization for a given architecture 
or lacks features other, more focused compilers tend to have, like 
inter-procedural analysis.

Derek E. Lewis
dlewis at solnetworks.net
http://delewis.blogspot.com



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: autovacuum launcher eating too much CPU
Next
From: Alvaro Herrera
Date:
Subject: Re: curious regression failures