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

A. Rodríguez Trinidad, Rafael Morales Muñoz, Miguel Abril, Luis Pedro Costillo Iciarra, M. Vázquez, Ovidio Rabaza, A. Ramón, M. Á. Sánchez Carrasco, S. Becerril, P. J. Amado · Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · 2010

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.

Read the paper · More papers on PaperTik