Defmacro for C: Lightweight, Ad Hoc Code Generation
- We describe the design and implementation of CGen, a C code generator with support for Common Lisp-style macro expansion. 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.
Author: | Kai Selgrad, Alexander Lier, Markus Wittmann, Daniel Lohmann, Marc Stamminger |
---|---|
URL / DOI: | https://european-lisp-symposium.org/static/proceedings/2014.pdf |
ISSN: | 2677-3465 |
Parent Title (English): | Proceedings of ELS 2014 7th European Lisp Symposium ; May 5 - 6 2014, IRCAM, Paris, France |
Document Type: | conference proceeding (article) |
Language: | English |
Year of first Publication: | 2014 |
Release Date: | 2022/04/26 |
Tag: | Code Generation; Common Lisp; Configurability; Macro; Maintenance; Meta Programming |
First Page: | 80 |
Last Page: | 87 |
Institutes: | Fakultät Informatik und Mathematik |
Begutachtungsstatus: | peer-reviewed |
Publication: | Externe Publikationen |
research focus: | Digitalisierung |
Licence (German): | Keine Lizenz - Es gilt das deutsche Urheberrecht: § 53 UrhG |