Implemented constant folding

This commit is contained in:
Eduard Urbach 2024-07-29 14:44:16 +02:00
parent 315ad23e31
commit 67c7d1ec99
Signed by: eduard
GPG key ID: 49226B848C78F6C8
8 changed files with 118 additions and 1 deletions

View file

@ -15,6 +15,15 @@ const (
)
var (
// Shows the assembly instructions at the end of the compilation.
Assembler = false
Dry = false
// Calculates the result of operations on constants at compile time.
ConstantFold = true
// Skips writing the executable to disk.
Dry = false
// Skips compiling assert statements.
SkipAsserts = false
)