r199894 - Add documentation for -m16 option on X86, fix typo
David Woodhouse
dwmw2 at infradead.org
Thu Jan 23 06:32:46 PST 2014
Author: dwmw2
Date: Thu Jan 23 08:32:46 2014
New Revision: 199894
URL: http://llvm.org/viewvc/llvm-project?rev=199894&view=rev
Log:
Add documentation for -m16 option on X86, fix typo
Modified:
cfe/trunk/docs/UsersManual.rst
Modified: cfe/trunk/docs/UsersManual.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/UsersManual.rst?rev=199894&r1=199893&r2=199894&view=diff
==============================================================================
--- cfe/trunk/docs/UsersManual.rst (original)
+++ cfe/trunk/docs/UsersManual.rst Thu Jan 23 08:32:46 2014
@@ -1329,9 +1329,16 @@ to correctly compile many large C, C++,
codebases.
On ``x86_64-mingw32``, passing i128(by value) is incompatible with the
-Microsoft x64 calling conversion. You might need to tweak
+Microsoft x64 calling convention. You might need to tweak
``WinX86_64ABIInfo::classify()`` in lib/CodeGen/TargetInfo.cpp.
+For the X86 target, clang supports the :option:`-m16` command line
+argument which enables 16-bit code output. This is broadly similar to
+using ``asm(".code16gcc")`` with the GNU toolchain. The generated code
+and the ABI remains 32-bit but the assembler emits instructions
+appropriate for a CPU running in 16-bit mode, with address-size and
+operand-size prefixes to enable 32-bit addressing and operations.
+
ARM
^^^
More information about the cfe-commits
mailing list