Skip to content

options

Boris Batkin edited this page Feb 21, 2019 · 16 revisions

Multiple options can be listed in a single options expression. Later options overwrite earlier options. Typical options expression looks something like this

options log=true, optimize=false

optimize=true
enables or disables all optimization passes

disableRun=true
disables aggressive user function folding

log=false
outputs final program code

logCompileTime=false
log how long it took to compile

alwaysExportInitializer=false
if specified, [export] annotation will be added to every default initializer

heap=size
specifies initial size for the small-allocations buddy pool

logGenerics=false
outputs generics, as opposed to instanced functions only

logStack=false
outputs stack allocation for each function

logMem=false
outputs memory usage per heap (code, debugInfo, regular heap)

logOptimizationPasses=false
outputs program code for each intermediate optimization pass

logInferPasses=false
outputs program code for each intermediate type inference pass

logNodes=false
outputs final program code node disassembler

printRef=false
when logging, outputs expression dereferencing information

printVarAccess=false
when logging, outputs variable initialize, read, or write access markers

plot=false
outputs .dot file corresponding to programs' flow chart

plotReadWrite=false
plot output will contain additional data dependency arrows

indenting=0,2,4,8
sets semantic indenting value for specific file. 0 means default, which can be project-specific, but by default is 4

Clone this wiki locally