Add a description for --memory-model to the docs.
This commit is contained in:
@@ -514,6 +514,28 @@ Here is a description of all the command line options:
|
|||||||
name="#pragma local-strings"></tt> for fine grained control.
|
name="#pragma 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>
|
<tag><tt>-o name</tt></tag>
|
||||||
|
|
||||||
Specify the name of the output file. If you don't specify a name, the
|
Specify the name of the output file. If you don't specify a name, the
|
||||||
|
|||||||
@@ -1089,6 +1089,14 @@ int main (int argc, char* argv[])
|
|||||||
OptSignedChars (Arg, 0);
|
OptSignedChars (Arg, 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'm':
|
||||||
|
if (Arg[2] == 'm') {
|
||||||
|
OptMemoryModel (Arg, GetArg (&I, 3));
|
||||||
|
} else {
|
||||||
|
UnknownOption (Arg);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case 'o':
|
case 'o':
|
||||||
SetOutputName (GetArg (&I, 2));
|
SetOutputName (GetArg (&I, 2));
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user