An ECMA-55 Minimal BASIC Compiler for x86-64 Linux®
AbstractThis paper describes a new non-optimizing compiler for the ECMA-55 Minimal BASIC language that generates x86-64 assembler code for use on the x86-64 Linux®  3.x platform. The compiler was implemented in C99 and the generated assembly language is in the AT&T style and is for the GNU assembler. The generated code is stand-alone and does not require any shared libraries to run, since it makes system calls to the Linux® kernel directly. The floating point math uses the Single Instruction Multiple Data (SIMD) instructions and the compiler fully implements all of the floating point exception handling required by the ECMA-55 standard. This compiler is designed to be small, simple, and easy to understand for people who want to study a compiler that actually implements full error checking on floating point on x86-64 CPUs even if those people have little programming experience. The generated assembly code is also designed to be simple to read. View Full-Text
- Supplementary File 1:
BASIC Compiler (XZ, 2678 KB)
Share & Cite This Article
Ham, J.G. An ECMA-55 Minimal BASIC Compiler for x86-64 Linux®. Computers 2014, 3, 69-116.
Ham JG. An ECMA-55 Minimal BASIC Compiler for x86-64 Linux®. Computers. 2014; 3(3):69-116.Chicago/Turabian Style
Ham, John G. 2014. "An ECMA-55 Minimal BASIC Compiler for x86-64 Linux®." Computers 3, no. 3: 69-116.