Defmacro for C: Lightweight, Ad Hoc Code Generation

Conference contribution
(Original article)


Publication Details

Author(s): Selgrad K, Lier A, Wittmann M, Lohmann D, Stamminger M
Editor(s): Verna, Didier
Publication year: 2014
Conference Proceedings Title: Proceedings of ELS 2014 7th European Lisp Symposium
Pages range: 80-87
Language: English


Abstract


We describe the design and implementation of CGen, a C code generator with support for Common Lisp-style macroexpansion. Our code generator supports the simple and efficient management of variants, ad hoc code generation to capture reoccurring patterns, composable abstractions as well as the implementation of embedded domain specific languages by using the Common Lisp macro system. We demonstrate the applicability of our approach by numerous examples from small scale convenience macros over embedded languages to real-world applications in high-performance computing.



FAU Authors / FAU Editors

Lier, Alexander
Lehrstuhl für Informatik 9 (Graphische Datenverarbeitung)
Lohmann, Daniel PD Dr.
Technische Fakultät
Selgrad, Kai
Professur für Informatik (Visualisierung)
Stamminger, Marc Prof. Dr.
Lehrstuhl für Informatik 9 (Graphische Datenverarbeitung)
Wittmann, Markus
Professur für Höchstleistungsrechnen


How to cite

APA:
Selgrad, K., Lier, A., Wittmann, M., Lohmann, D., & Stamminger, M. (2014). Defmacro for C: Lightweight, Ad Hoc Code Generation. In Verna, Didier (Eds.), Proceedings of ELS 2014 7th European Lisp Symposium (pp. 80-87). Paris, FR.

MLA:
Selgrad, Kai, et al. "Defmacro for C: Lightweight, Ad Hoc Code Generation." Proceedings of the 7th European Lisp Symposium, Paris Ed. Verna, Didier, 2014. 80-87.

BibTeX: 

Last updated on 2019-22-07 at 07:31