1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

Document that -t changes not only the character translation table, but also

the default CPU.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4884 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2010-11-29 20:13:32 +00:00
parent 3f5b2a8fbd
commit e0d3936705
2 changed files with 22 additions and 15 deletions

View File

@ -288,12 +288,15 @@ Here is a description of all the command line options:
<label id="option-t"> <label id="option-t">
<tag><tt>-t sys, --target sys</tt></tag> <tag><tt>-t sys, --target sys</tt></tag>
Set the target system. This will enable translation of character strings Set the target system. This will enable translation of character strings and
and character constants into the character set of the target platform. character constants into the character set of the target platform. The
The default for the target system is "none", which means that no translation default for the target system is "none", which means that no translation
will take place. The assembler supports the same target systems as the will take place. The assembler supports the same target systems as the
compiler, see there for a list. compiler, see there for a list.
Depending on the target, the default CPU type is also set. This can be
overriden by using the <tt/<ref id="option--cpu" name="--cpu">/ option.
<label id="option-v"> <label id="option-v">
<tag><tt>-v, --verbose</tt></tag> <tag><tt>-v, --verbose</tt></tag>

View File

@ -145,14 +145,15 @@ Here is a description of all the command line options:
using <tt/-Oi/ (<tt/-Oi/ is the same as <tt/-O --codesize&nbsp;200/). using <tt/-Oi/ (<tt/-Oi/ is the same as <tt/-O --codesize&nbsp;200/).
<label id="option-cpu"> <label id="option--cpu">
<tag><tt>--cpu CPU</tt></tag> <tag><tt>--cpu CPU</tt></tag>
A new, still experimental option. You may specify "6502" or "65C02" as the Set the CPU, the compiler generates code for. You may specify "6502" or
CPU. 6502 is the default, so this will not change anything. Specifying 65C02 "65C02" as the CPU. The default depends on the selected target (see option
will use a few 65C02 instructions when generating code. Don't expect too <tt/<ref id="option-t" name="-t">/). It is the 6502 CPU for most targets or
much from this option: It is still new (and may have bugs), and the if no target has been set. Specifying 65C02 will use a few 65C02
additional instructions for the 65C02 are not that overwhelming. instructions when generating code. Don't expect too much from this option:
In most cases the difference in size and speed is just 1-2%.
<label id="option-create-dep"> <label id="option-create-dep">
@ -319,12 +320,15 @@ Here is a description of all the command line options:
will. c99 mode is actually c89 mode with a few selected C99 extensions. will. c99 mode is actually c89 mode with a few selected C99 extensions.
<label id="option-standard"> <label id="option-t">
<tag><tt>-t target, --target target</tt></tag> <tag><tt>-t target, --target target</tt></tag>
This option is used to set the target system. The target system This option is used to set the target system. The target system determines
determines things like the character set that is used for strings and the character set that is used for strings and character constants and the
character constants. The following target systems are supported: default CPU. The CPU setting can be overriden by use of the <tt/<ref
id="option--cpu" name="--cpu">/ option.
The following target systems are supported:
<itemize> <itemize>
<item>none <item>none