hschumann2/TempleOS-Source-Code
0838
1 2 Compiler Options3 4Use Option(). You might need to do #exe {Option();}.5 6OPTf_GLBLS_ON_DATA_HEAP without this option, global vars are placed in the code7heap which is limited to 2Gig. In AOT modules, global vars take-up room in the8.BIN file, so you might want to use this option, instead. You might wish to9turn it on and off around specific vars. A disadvantage of data heap global10vars in AOT modules is they can't be initialized.11 12OPTf_EXTERNS_TO_IMPORTS and OPTf_KEEP_PRIVATE are strange options, you'll never13need. They're to allow the same header file for Kernel to act as externs when14compiling itself and imports when compiled by AOT modules.15 16OPTf_WARN_UNUSED_VAR warning if unused var. It is applied to functions.17 18OPTf_WARN_PAREN warning if parenthesis are not needed.19 20OPTf_WARN_DUP_TYPES warning if dup local var type stmts.21 22OPTf_WARN_HEADER_MISMATCH warning if fun header does not match.23 24OPTf_NO_REG_VAR forces all function local vars to the stk not regs. Applied to25functions.26 27OPTf_NO_BUILTIN_CONST Disable 10-byte float consts for pi, log2_10, log10_2,28loge_2. Applied to functions.29 