Go forward to M68K-Syntax.
Go backward to M68K-Dependent.
Go up to M68K-Dependent.
M680x0 Options
--------------
The Motorola 680x0 version of `as' has two machine dependent options.
One shortens undefined references from 32 to 16 bits, while the other
is used to tell `as' what kind of machine it is assembling for.
You can use the `-l' option to shorten the size of references to
undefined symbols. If the `-l' option is not given, references to
undefined symbols will be a full long (32 bits) wide. (Since `as'
cannot know where these symbols will end up, `as' can only allocate
space for the linker to fill in later. Since `as' doesn't know how far
away these symbols will be, it allocates as much space as it can.) If
this option is given, the references will only be one word wide (16
bits). This may be useful if you want the object file to be as small as
possible, and you know that the relevant symbols will be less than 17
bits away.
The 680x0 version of `as' is most frequently used to assemble
programs for the Motorola MC68020 microprocessor. Occasionally it is
used to assemble programs for the mostly similar, but slightly different
MC68000 or MC68010 microprocessors. You can give `as' the options
`-m68000', `-mc68000', `-m68010', `-mc68010', `-m68020', and `-mc68020'
to tell it what processor is the target.