[PATCH] [x86] Add x86_16 target

Joerg Sonnenberger joerg at britannica.bec.de
Wed Jan 8 06:05:20 PST 2014


On Wed, Jan 08, 2014 at 01:48:47PM +0000, David Woodhouse wrote:
> The x86_16 target is equivalent to building with GCC and
> asm(".code16gcc"). It doesn't have sizeof(int)==2 etc.; it uses the same
> ABI as 32-bit x86, and you just see a lot of OpSize and AdSize prefixes
> in the resulting code. Thus, it won't actually run on a *real* i8086 but
> it does work fine on modern CPUs in 16-bit mode.

Given this, I wonder if it would be a better idea to implement it as
environment of i386--* like x32 is.

Joerg



More information about the llvm-commits mailing list