templeos-info/public/Wb/Doc/Options.DD.HTML

59 lines
4.2 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre style="font-family: courier, monospace; font-size: 10pt;">
<a name="l1"></a><span class=cF5> Compiler Options</span><span class=cF0>
<a name="l2"></a>
<a name="l3"></a>Use </span><a href="/Wb/Compiler/CMisc.HC#l1"><span class=cF4>Option</span></a><span class=cF0>(). You might need to do </span><span class=cF2>#exe {Option();}</span><span class=cF0>.
<a name="l4"></a></span><span class=cF4>
<a name="l5"></a></span><a href="/Wb/Kernel/KernelA.HH#l1555"><span class=cF4>OPTf_GLBLS_ON_DATA_HEAP</span></a><span class=cF0> without this option, global vars are placed in the code
<a name="l6"></a>heap which is limited to 2Gig. In </span><span class=cF2>AOT</span><span class=cF0> modules, global vars take-up room in the </span><span class=cF2>
<a name="l7"></a>.BIN</span><span class=cF0> file, so you might want to use this option, instead. You might wish to
<a name="l8"></a>turn it on and off around specific vars. A disadvantage of data heap global
<a name="l9"></a>vars in </span><span class=cF2>AOT</span><span class=cF0> modules is they can't be initialized.
<a name="l10"></a></span><span class=cF4>
<a name="l11"></a></span><a href="/Wb/Kernel/KernelA.HH#l1552"><span class=cF4>OPTf_EXTERNS_TO_IMPORTS</span></a><span class=cF0> and </span><a href="/Wb/Kernel/KernelA.HH#l1553"><span class=cF4>OPTf_KEEP_PRIVATE</span></a><span class=cF0> are strange options, you'll never
<a name="l12"></a>need. They're to allow the same header file for </span><span class=cF2>Kernel</span><span class=cF0> to act as </span><span class=cF2>extern</span><span class=cF0>s when
<a name="l13"></a>compiling itself and </span><span class=cF2>import</span><span class=cF0>s when compiled by </span><span class=cF2>AOT</span><span class=cF0> modules.
<a name="l14"></a></span><span class=cF4>
<a name="l15"></a></span><a href="/Wb/Kernel/KernelA.HH#l1548"><span class=cF4>OPTf_WARN_UNUSED_VAR</span></a><span class=cF0> warning if unused var. It is applied to functions.
<a name="l16"></a></span><span class=cF4>
<a name="l17"></a></span><a href="/Wb/Kernel/KernelA.HH#l1549"><span class=cF4>OPTf_WARN_PAREN</span></a><span class=cF0> warning if parenthesis are not needed.
<a name="l18"></a></span><span class=cF4>
<a name="l19"></a></span><a href="/Wb/Kernel/KernelA.HH#l1550"><span class=cF4>OPTf_WARN_DUP_TYPES</span></a><span class=cF0> warning if dup local var type stmts.
<a name="l20"></a></span><span class=cF4>
<a name="l21"></a></span><a href="/Wb/Kernel/KernelA.HH#l1551"><span class=cF4>OPTf_WARN_HEADER_MISMATCH</span></a><span class=cF0> warning if fun header does not match.
<a name="l22"></a></span><span class=cF4>
<a name="l23"></a></span><a href="/Wb/Kernel/KernelA.HH#l1554"><span class=cF4>OPTf_NO_REG_VAR</span></a><span class=cF0> forces all function local vars to the stk not regs. Applied to
<a name="l24"></a>functions.
<a name="l25"></a></span><span class=cF4>
<a name="l26"></a></span><a href="/Wb/Kernel/KernelA.HH#l1557"><span class=cF4>OPTf_NO_BUILTIN_CONST</span></a><span class=cF0> Disable 10-byte float consts for pi, log2_10, log10_2,
<a name="l27"></a>loge_2. Applied to functions.
</span></pre></body>
</html>