A simple way to build an ANSI-C like compiler from scratch and embed it on the instrument's software

DOI: 
10.1117/12.856385
Publication date: 
01/07/2010
Main author: 
Trinidad A.R.
IAA authors: 
Trinidad, A.R.;Muñoz, R.M.;Martí, M.A.;Iciarra, L.P.C.;Vázquez, M.C.C.;Castillo, O.R.;Ballesta, A.R.;Carrasco, M.A.S.;Jarque, S.B.;González, P.J.A.
Authors: 
Trinidad A.R., Muñoz R.M., Martí M.A., Iciarra L.P.C., Vázquez M.C.C., Castillo O.R., Ballesta A.R., Carrasco M.A.S., Jarque S.B., González P.J.A.
Journal: 
Proceedings of SPIE - The International Society for Optical Engineering
Publication type: 
Article
Volume: 
7740
Pages: 
Number: 
774025
Abstract: 
This paper examines the reasons for building a compiled language embedded on an instrument software. Starting from scratch and step by step, all the compiler stages of an ANSI-C like language are analyzed, simplified and implemented. The result is a compiler and a runner with a small footprint that can be easily transferable and embedded into an instrument software. Both have about 75 KBytes when similar solutions have hundreds. Finally, the possibilities that arise from embedding the runner inside an instrument software are explored. © 2010 SPIE.
Database: 
SCOPUS
ADS
URL: 
https://ui.adsabs.harvard.edu/#abs/2010SPIE.7740E..25R/abstract
ADS Bibcode: 
2010SPIE.7740E..25R
Keywords: 
abstract machine.; CIn; compiler; embedded compiler; language compiler design