This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: about .code16
- To: squalls_tang at 263 dot net
- Subject: Re: about .code16
- From: Nick Clifton <nickc at redhat dot com>
- Date: Sun, 11 Feb 2001 13:40:42 -0800
- CC: binutils at sources dot redhat dot com
Hi Yu,
: hi,could someone told me that,what's the exact difference between
: the instructions produced by gas with directive .code16 and without
: it?
You really need to provide some more context before a complete answer
can be given. For example, what target are you talking about and
which tool ?
If you are talking about the assembler (gas) and you are takling about
an ARM or a MIPS based target, then the .code16 directive tells the
assembler to switch into the smaller, 16 bit instruction set. Both
the ARM and the MIPS architectures support an alternative, smaller
instruction set (16 bit vs 32 bit) which is intended to improve code
density.
Cheers
Nick