My own compiler options

Hi!

If I want to experiment with my own compiler optimization options for
SDL-1.2.6, where can I put them in the SDL-1.2.6 source distrib file tree? I
want to recompile SDL with some new optimization settings as an experiment to
see if it has any effect on performance.

Thanks–
Stefan Viljoen
Polar Design Solutions
Software Support Technician

Stefan Viljoen wrote:

Hi!

If I want to experiment with my own compiler optimization options for
SDL-1.2.6, where can I put them in the SDL-1.2.6 source distrib file tree? I
want to recompile SDL with some new optimization settings as an experiment to
see if it has any effect on performance.

Thanks

Oh, one more thing : I’d be interested in any results you get from your
experiments :slight_smile:

Thanks,
Stephane

Stefan Viljoen wrote:

Hi!

If I want to experiment with my own compiler optimization options for
SDL-1.2.6, where can I put them in the SDL-1.2.6 source distrib file tree? I
want to recompile SDL with some new optimization settings as an experiment to
see if it has any effect on performance.

Thanks

One way to do this is :

CFLAGS="-O3 -march=athlon-xp" ./configure
make

Stephane

Hello,

you don’t need to modify any file. Simply do:

CFLAGS="-your_custom_flags" ./configure --your_config_options

Stefan Viljoen wrote:> Hi!

If I want to experiment with my own compiler optimization options for
SDL-1.2.6, where can I put them in the SDL-1.2.6 source distrib file tree? I
want to recompile SDL with some new optimization settings as an experiment to
see if it has any effect on performance.

Thanks