Build Options, Size, Speed, Compatibility ?

BlitzMax Forums/BlitzMax Programming/Build Options, Size, Speed, Compatibility ?

Arowx(Posted 2010) [#1]
Hi there just wondering if anyone has a good idea about compile options and libarary updated?

I was just trying to build with the pentium-m compile option in MinGW and was wondering if anyone has done any benchmarks to see if these options would make a difference e.g. -03 appears to maximize speed and -Os minimize size.

Now as I'm writing casual games, technically this should not be a problem but I do like the idea of getting a potential improvement in speed by just altering a compile flag!

I have had a browse online and came across this genetic algorithm for finding the best GCC compile flags

http://coyotegulch.com/products/acovea/aco5p4gcc40.html

Cool but after reading his comment it seams that the best way to optimize is to profile and refine your code and then make sure you use the best compile time flags for the job!

So no free lunch but could I write a GA search algorith for BlitzMax apps ;o)

Would it also be possible to use exclusive flags that would prevent your app from running on certain hardware e.g. SSE3?


Brucey(Posted 2010) [#2]
I think xlsior has some basic stats somewhere.


matibee(Posted 2010) [#3]
One of those compile flags may be set for you already. From the changelog from 1.36;

* Changed GCC optimization level in release mode from -Os (smallest) to -O2 (fastest)


Actual release post: http://www.blitzbasic.com/Community/posts.php?topic=88051


Arowx(Posted 2010) [#4]
@Brucey - Hope to hear form xlsior then.
@matibee - Great does -03 improve things further then?

What about the SSE and MMX extensions surely the majority of intel CPU's have these features now and they are multimedia extensions?