mysqlcompiler
We recently integrated MySQL 5.0.45 version with Open Solaris.
MySQL 5.0.45 is available in SXDE 01/08. Sun Studio was used to
compile MySQL on both Solaris SPARC and Solaris AMD64
platform.
This blog entry describes the changes that were made to improve
MySQL performance using Sun Studio:
- Enable function inlining when Sun Studio is used.
- The header file univ.i has the following code:
- #if !defined(GNUC) && !defined(WIN)
- #undef UNIV_MUST_NOT_INLINE /\* Remove compiler warning \*/
- #define UNIV_MUST_NOT_INLINE
- #endif
- Modifying it to add Sun Studio compiler as under:
- #if !defined(GNUC) …
- The header file univ.i has the following code: