ZealOS/docs/Doc/Options.DD.html

53 lines
4.6 KiB
HTML
Raw Normal View History

2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
2021-12-11 11:10:58 +00:00
<meta name="generator" content="ZealOS V1.07">
2021-07-03 05:07:57 +01:00
<style type="text/css">
body {background-color:#1f1f1f;}
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
.cF1{color:#4f84a6;background-color:#1f1f1f;}
.cF2{color:#73a255;background-color:#1f1f1f;}
.cF3{color:#297582;background-color:#1f1f1f;}
.cF4{color:#b34f4b;background-color:#1f1f1f;}
.cF5{color:#8a52c3;background-color:#1f1f1f;}
.cF6{color:#b7822f;background-color:#1f1f1f;}
.cF7{color:#444444;background-color:#1f1f1f;}
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
.cF9{color:#94bfde;background-color:#1f1f1f;}
.cFA{color:#a1ce97;background-color:#1f1f1f;}
.cFB{color:#6db4be;background-color:#1f1f1f;}
.cFC{color:#e88e88;background-color:#1f1f1f;}
.cFD{color:#ca94e8;background-color:#1f1f1f;}
.cFE{color:#d4b475;background-color:#1f1f1f;}
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
2021-07-03 05:07:57 +01:00
</style>
</head>
<body>
<pre style="font-family:monospace;font-size:12pt">
<a name="l1"></a><span class=cF5> Compiler Options</span><span class=cF0>
2021-07-03 05:07:57 +01:00
<a name="l2"></a>
2021-12-11 11:10:58 +00:00
<a name="l3"></a>Use </span><a href="https://zeal-operating-system.github.io/ZealOS/Compiler/CMisc.ZC.html#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>.
2021-07-03 05:07:57 +01:00
<a name="l4"></a></span><span class=cF4>
<a name="l5"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1685"><span class=cF4>OPTf_GLOBALS_ON_DATA_HEAP</span></a><span class=cF0> without this option, global variables are placed in the code heap which is limited to 2Gig. In </span><span class=cF2>AOT</span><span class=cF0>
<a name="l6"></a>modules, global variables take-up room in the </span><span class=cF2>.BIN</span><span class=cF0> file, so you might want to use this option, instead. You might wish to
<a name="l7"></a>turn it on and off around specific variables. A disadvantage of data heap global variables in </span><span class=cF2>AOT</span><span class=cF0> modules is they can't be
<a name="l8"></a>initialized.
<a name="l9"></a></span><span class=cF4>
<a name="l10"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1682"><span class=cF4>OPTf_EXTERNS_TO_IMPORTS</span></a><span class=cF0> and </span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1683"><span class=cF4>OPTf_KEEP_PRIVATE</span></a><span class=cF0> are strange options, you'll never need. They're to allow the same header file
<a name="l11"></a>for </span><span class=cF2>Kernel</span><span class=cF0> to act as </span><span class=cF2>extern</span><span class=cF0>s when 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="l12"></a></span><span class=cF4>
<a name="l13"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1678"><span class=cF4>OPTf_WARN_UNUSED_VAR</span></a><span class=cF0> warning if unused variable. It is applied to functions.
<a name="l14"></a></span><span class=cF4>
<a name="l15"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1679"><span class=cF4>OPTf_WARN_PAREN</span></a><span class=cF0> warning if parenthesis are not needed.
<a name="l16"></a></span><span class=cF4>
<a name="l17"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1680"><span class=cF4>OPTf_WARN_DUP_TYPES</span></a><span class=cF0> warning if duplicate local variable type statements.
<a name="l18"></a></span><span class=cF4>
<a name="l19"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1681"><span class=cF4>OPTf_WARN_HEADER_MISMATCH</span></a><span class=cF0> warning if function header does not match.
<a name="l20"></a></span><span class=cF4>
<a name="l21"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1684"><span class=cF4>OPTf_NO_REG_VAR</span></a><span class=cF0> forces all function local variables to the stack not registers. Applied to functions.
<a name="l22"></a></span><span class=cF4>
<a name="l23"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1687"><span class=cF4>OPTf_NO_BUILTIN_CONST</span></a><span class=cF0> Disable 10-byte float consts for pi, log2_10, log10_2, loge_2. Applied to functions.
2021-07-03 05:07:57 +01:00
</span></pre></body>
</html>