The WonderWitch is an official homebrew development environment provided by Qute Corporation. Because of the awkward licensing terms and legacy nature of the original software, a decision has been made to try and implement the target from scratch, using gcc-ia16’s modern compiler like in the WonderSwan target. Unfortunately, this poses some challenges:
An important advantage of libww (Wonderful’s reimplementation of the WonderWitch libraries) is that it is capable of inlining ASM calls to FreyaBIOS interrupt calls, saving the cost of call
and ret
instructions on them as a result, as well as allowing the compiler to allocate and reorder register usage accordingly.
The current status of the WonderWitch target is experimental. It is capable of compiling some non-trivial programs (such as WWTerm), but not all components of the original libraries are appropriately supported, and miscompilations/compiler ICEs may occasionally happen.