BCX is called “The BASIC To C Translator”. This means that BASIC code is converted to C. After that the resulting C code is compiled with the devKitPro toolchain with all the libraries like a normal Wiibrew application.

http://wiibrew.org/wiki/BCX-BASIC