3 ms·
> because it is the only reasonable way to handle x86 segmentation from C. That's nonsense, both GCC and Clang handle this perfectly well. It's how we handle
by rwmj 8y ago
> because it is the only reasonable way to handle x86 segmentation from C.
That's nonsense, both GCC and Clang handle this perfectly well. It's how we handle compiling 16 bit option ROMs in qemu:
https://git.qemu.org/?p=qemu.git;a=blob;f=pc-bios/optionrom/linuxboot_dma.c;h=4754282ad736ac3be6459d59dcca6edb64d3f4ed;hb=HEAD https://git.qemu.org/?p=qemu.git;a=blob;f=pc-bios/optionrom/...
- geofft 8y agoThis is the thing I don't get. qemu / SeaBIOS seem to build fine with a normal compiler like gcc or clang, as far as I know, and they're in Debian main. Why is VirtualBox different? What user-visible feature does its BIOS have that qemu doesn't - does it support booting OSes that qemu doesn't, or something? Can VirtualBox just switch to SeaBIOS?
- yuhong 8y agoNotice the special routines required for reading and writing from segments. A true 16-bit DOS compiler handles this for you.