[PATCH] D20109: Add support for Code16GCC

David Woodhouse via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 09:08:17 PDT 2016


dwmw2 added a comment.

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

And the *only* reason you'd use it is by putting asm(".code16gcc") at the start of a C file (which has problems with ensuring it's *first* in the asm output, which is why -m16 is so much better even in GCC). And didn't I see separately you forbade inline asm from leaving the assembler in a different mode to the one it starts in?


http://reviews.llvm.org/D20109





More information about the llvm-commits mailing list