-
In the traditional DOS cdecl ABI, ES is clobbered by function calls. ia16-elf-gcc preserves it now unless you give GCC the option `-fcall-used-es`. Though I managed to cause an ICE with that option: I…
-
It would be nice and may not be too hard to implement -mrtd (as already implemented for i386) where functions issue "ret n" instructions, so the callee pops the stack. The FreeDOS kernel saves space u…
-
Background: I managed to compile the FreeDOS kernel now but its size (81K) is bigger than both the Open Watcom C (70K) and Turbo C 2.01 (80K) compiled versions. I am looking for some optimization oppo…
-
I wrote a simple program [`qux.c`](https://github.com/crtc-demos/newlib-ia16/files/923769/qux.c.txt) (linked) which just does a `printf` and exits. When compiled, the `.com` file starts
```asm
xor…
-
It would be really nice if there were GAS syntax support, since this would allow using the IA16 port of GCC for compiling, and OpenWatcom for assembling and linking: [How do I assemble GAS assembly an…