On Sat, Jan 22, 2005 at 12:06:29AM -0600, Greg Miller wrote:

> In answer to your question, the compiler will automatically attempt to 
> make use of the extra registers when compiling on your AM64 system. Just 
> don't expect too much.

This whole discussion has segued off into a rather odd direction, to
my mind.  The original poster seemed to simply be asking, essentially,
"Am I building SQLite with 64 bit support on my system, or not?"

On a system that has both 32 and 64 bit libraries for x86-64, this is
a valid an useful question.  Because after all, if you build 32 bit
only, you presumably are NOT going to get the benfit of those extra 64
bit registers.  (And conversely your pointers will be only 32 bits
long, which might make 32 bit faster.  Etc. etc.)

Clearly, this has little to do with the SQLite code itself, but it
most certainly has a lot to do with its build process on x86-64
machines.  If someone is actually interested in testing 32 vs. 64 bit
speed with SQLite, it should be entirely possible to build SQLite both
ways on the same x86-64 box.

If instead the original poster intended to ask, "How or if can the
SQLite code be changed to be faster on x86-64?", well, there's little
point in even asking that question until you've actually built it both
32 and 64 bit, on the same box, and benchmarked both builds.

-- 
Andrew Piskorski <[EMAIL PROTECTED]>
http://www.piskorski.com/

Reply via email to