From 5d2c0e787ef2610efce08f5bebf2a0b67864a6c4 Mon Sep 17 00:00:00 2001 From: Samuel Hammersberg Date: Thu, 30 Mar 2023 15:08:40 +0200 Subject: [PATCH] The compiler is now compiled with O3. --- src/Compiler.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Compiler.hs b/src/Compiler.hs index c486cc4..43c9c5e 100644 --- a/src/Compiler.hs +++ b/src/Compiler.hs @@ -8,7 +8,7 @@ import System.Process.Extra ( -- spawnWait s = spawnCommand s >>= \s >>= waitForProcess optimize :: String -> IO String -optimize = readCreateProcess (shell "opt --O3 -S") +optimize = readCreateProcess (shell "opt --O3 --tailcallopt -S") compileClang :: String -> IO String compileClang = @@ -20,7 +20,7 @@ compileClang = , "src/GC/lib/event.cpp" , "src/GC/lib/heap.cpp" , "src/GC/lib/profiler.cpp" - , "-Wall -Wextra -g -std=gnu++20 -stdlib=libstdc++" + , "-Wall -Wextra -g -std=gnu++20 -stdlib=libstdc++ -O3" , "-Isrc/GC/include" , "-x" , "ir" -- , "-Lsrc/GC/lib -l:gcoll.a"