esa / opengeode

OpenGEODE - a free SDL State Machine editor for space applications...and more
https://opengeode.net
GNU Lesser General Public License v3.0
69 stars 20 forks source link

Optimizations #28

Closed dbrabera closed 10 years ago

dbrabera commented 10 years ago

Added common optimization levels (0, 1, 2, 3) to the LLVM IR generator, which can be set with the command line flag "-O".

The benchmarks script has been modified to use this optimizations levels, and it can be invoked with "make benchmark", "make benchmark-O1", "make benchmark-O2" and "make benchmark-O3", setting the optimization flags in the LLVM IR generator, as well as in the C and Ada compilers.

In the process, the makefile rules has been refactored removing code duplication.