动态语言的原生扩展
Debugging Native Extensions of Dynamic Languages
摘要:
许多动态规划语言,如Ruby和Python,使开发人员能够使用所谓的本地扩展,代码实现在典型的静态编译语言,如C和C++。但是,这些动态语言的调试器通常不支持调试这些本地扩展。GraalVM可以执行以各种动态规划语言实现的程序,并且通过使用LLVM-IR解释器Sulong,还可以执行它们的本地扩展。我们基于GraalVM的调试框架,通过将LLVM-IR级别的运行时调试信息与原始程序代码相关联,为Sulong添加了对源代码级调试的支持。因此,开发人员现在可以使用GraalVM调试用多种基于LLVM的程序设计语言编写的源代码,以及用各种动态语言实现的程序,这些程序在公共调试器前端中调用GraalVM。
英文摘要:
Many dynamic programming languages such as Ruby and Python enable developers to use so called native extensions, code implemented in typically statically compiled languages like C and C++. However, debuggers for these dynamic languages usually lack support for also debugging these native extensions. GraalVM can execute programs implemented in various dynamic programming languages and, by using the LLVM-IR interpreter Sulong, also their native extensions. We added support for source-level debugging to Sulong based on GraalVM's debugging framework by associating run-time debug information from the LLVM-IR level to the original program code. As a result, developers can now use GraalVM to debug source code written in multiple LLVM-based programming languages as well as programs implemented in various dynamic languages that invoke it in a common debugger front-end.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。