List:Internals« Previous MessageNext Message »
From:Tobias Oberstein Date:January 24 2001 3:25pm
Subject:building MySQL on OpenBSD with --enable-assembler
View as plain text  
This applies to MySQL 3.23.32 + BerkeleyDB 3.2.3h.

The --enable-assembler options of configure allows for
compiling in x86 (and sparc) versions of common string
operations, which should result in more performance.

Apparently, the 2 involved files (for x86) strings-x86.s and
longlong2str-x86.s won't compile on OpenBSD 2.8 / i686 / gcc 2.95.3.

I've patched these 2, so they will compile:

1.
Removed C-style comments not starting on Pos 1 of line with
Shell-style comments aka '#')

2.
modified "clrl %eax" to "movl $0, %eax" and the like ..

3.
added a period to a segment size specifier

4.
modified ".p2align 4,,7" pseudo-op to ".align 4"


NOTE. All tests from the _mysql-test_ dir run successfully (except
the one's related to Master-Slave replication), that are 94 tests.


WARNING: As I'm _not_ a x86 assembler guru, I'm not 100% sure if these
modifications are safe. Any comments are welcome.


The patched versions are included.

Greets, Toby.


"Anyone who considers arithmetical methods of producing random digits
is, of course, in a state of sin."   John von Neumann


Thread
building MySQL on OpenBSD with --enable-assemblerTobias Oberstein24 Jan
  • building MySQL on OpenBSD with --enable-assemblerMichael Widenius25 Jan
    • Re: building MySQL on OpenBSD with --enable-assemblerTobias Oberstein26 Jan
      • Re: building MySQL on OpenBSD with --enable-assemblerMichael Widenius26 Jan
        • Re: building MySQL on OpenBSD with --enable-assemblerTobias Oberstein27 Jan