Merge pull request #2803 from kugelfuhr/kugelfuhr/fix-1162

Add a description for --memory-model to the docs
This commit is contained in:
Bob Andrews
2025-07-16 00:56:36 +02:00
committed by GitHub
2 changed files with 30 additions and 0 deletions

View File

@@ -515,6 +515,28 @@ Here is a description of all the command line options:
name="#pragma&nbsp;local-strings"></tt> for fine grained control.
<tag><tt>-mm model, --memory-model model</tt></tag>
This option sets the code and data models for the compiler to use. Please
note that memory models are an unfinished feature and using this option
with any other memory model than <tt/near/ will cause compile errors.
Possible arguments are:
<descrip>
<tag/near/
This memory model uses 16 bit addresses for code and data. It is
currently the only supported memory model and suited for the 6502.
<tag/far/
This memory model uses 24 bit addresses for code and 16 bit addresses
for data. It is suited for the 65816 but currently unsupported.
<tag/huge/
This memory model uses 24 bit addresses for code and data. It is
suited for the 65816 but currently unsupported.
</descrip>
<tag><tt>-o name</tt></tag>
Specify the name of the output file. If you don't specify a name, the