Next Article in Journal
Beyond Batch Processing: Towards Real-Time and Streaming Big Data
Previous Article in Journal
Adaptive Video Transmission Using Residue Octree Cubes
Article Menu

Export Article

Open AccessArticle
Computers 2014, 3(3), 69-116; doi:10.3390/computers3030069

An ECMA-55 Minimal BASIC Compiler for x86-64 Linux®

Burapha University, Faculty of Informatics, 169 Bangsaen Road, Tambon Saensuk, Amphur Muang,Changwat Chonburi 20131, Thailand
Received: 24 July 2014 / Revised: 17 September 2014 / Accepted: 1 October 2014 / Published: 1 October 2014
View Full-Text   |   Download PDF [346 KB, uploaded 1 October 2014]

Abstract

This 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® [1] 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
Keywords: BASIC; compiler; AMD64; INTEL64; EM64T; x86-64; assembly BASIC; compiler; AMD64; INTEL64; EM64T; x86-64; assembly
This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. (CC BY 4.0).

Supplementary material

Scifeed alert for new publications

Never miss any articles matching your research from any publisher
  • Get alerts for new papers matching your research
  • Find out the new papers from selected authors
  • Updated daily for 49'000+ journals and 6000+ publishers
  • Define your Scifeed now

SciFeed Share & Cite This Article

MDPI and ACS Style

Ham, J.G. An ECMA-55 Minimal BASIC Compiler for x86-64 Linux®. Computers 2014, 3, 69-116.

Show more citation formats Show less citations formats

Related Articles

Article Metrics

Article Access Statistics

1

Comments

[Return to top]
Computers EISSN 2073-431X Published by MDPI AG, Basel, Switzerland RSS E-Mail Table of Contents Alert
Back to Top