arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16690cs.PL
收藏

C-lisp 与基于 S 表达式的灵活宏编程

C-lisp and Flexible Macro Programming with S-expressions

Vedanth Padmaraman, Sasank Chilamkurthy

AI总结:

本文介绍 Llama$.$lisp 编译器框架中基于 S 表达式的宏系统,并以 FFI 绑定实现为例展示其灵活编程能力。

摘要:

Llama$.$lisp 是一个编译器框架,旨在面向 GPU 等卸载处理器后端,使用与设备无关的中间表示语言(IR)。Llama$.$lisp 的 IR 以 S 表达式形式表示,这使得它们易于使用高级编程语言生成,这是 Llama$.$lisp 的主要目标之一。目前 Llama$.$lisp 中实现的最高 IR 层是 C-Lisp。在本文中,我们描述了为 Llama$.$lisp 编译器框架开发的宏系统。我们以 FFI 绑定的实现为例,展示了该系统的用法。

英文摘要:

Llama$.$lisp is a compiler framework intended to target offload processor backends such as GPUs, using intermediate representation languages (IRs) that are device-agnostic. The Llama$.$lisp IRs are formulated as S-expressions. This makes them easy to generate using higher level programming languages, which is one of the primary goals for Llama$.$lisp. The highest IR layer currently implemented in Llama$.$lisp is C-Lisp. In this paper, we describe the macro system developed for the Llama$.$lisp compiler framework. We show how we implemented FFI bindings as an example of this system.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑