[PATCH] D20109: Add support for Code16GCC

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 14:37:16 PDT 2016


jyknight added a subscriber: jyknight.
jyknight added a comment.

In http://reviews.llvm.org/D20109#425880, @dwmw2 wrote:

> Hm, why? We already added -m16 support to both GCC and Clang. So why would anyone use .code16gcc any more? It's just legacy.


People do seem to use it in asm files, presumably for the same reason GCC used it: you get the same behavior of the textual assembly targetting 16-bit processor mode, as you would if it were running in a 32-bit processor mode.

Since LLVM's assembler is not only intended for inline asm in C, but also as an actual assembler, I think it makes fine sense to support this directive.


http://reviews.llvm.org/D20109





More information about the llvm-commits mailing list