I am looking at the optimize options in TeXmacs: tm_optimize.m4 and tm_platform.m4.
- A minor point:
-fexpensive-optimizationsintm_platform.m4is not needed. Forgcc, it is written in the official document that-O2and above already include-fexpensive-optimizations. Forclang, on the other hand,-fexpensive-optimizationsis not supported, andclangwill throw a warning with that flag. It seems better to remove. - Seemingly there is no differentiation between
gccandclangin the optimization flags. - I don’t know whether we have profiled the performance with
-O2and-O3systematically? Including withclang, I don’t know whether-O3is in general really faster.