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