On Dec 5, 2013, at 2:38 PM, Laszlo Ersek <ler...@redhat.com> wrote:
>
> Does gas support mode switches in one file? I found examples on the net (for
> nasm I think) where people were thunking to real mode and back to protected
> mode in a single assembly file, and they could use native mnemonics for each
> part. (They just switched the assembler's mode in sync with execution modes.)
Unfortunately the llvm assembler does not support 16-bit mode :(, and we try to
keep the .S assembly common….
So it is possible, but then we have to add a big #ifdef for llvm/clang to use
the .byte hackery to make that work.
Given the thrash on these 2 files, maybe it worth doing the GNU native
mnemonics version to get things working and then porting that back to llvm
after it is stable? I can help with llvm/clang/Xcode related issues and porting.
Thanks,
Andrew Fish
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel