Implemented constant folding
This commit is contained in:
parent
315ad23e31
commit
67c7d1ec99
8 changed files with 118 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue