Best Compiler Destination

后端 未结 3 1788
梦谈多话
梦谈多话 2020-12-08 12:05

I\'ve got a few languages I\'ve been building as interpreters. When I\'m ready to take \"that next step\", what options are best for non-native compiled formats... what are

3条回答
  •  悲&欢浪女
    2020-12-08 12:54

    LLVM seems promising. The team claims better runtime performances on gcc with their backend compared to native. The ability to compile from the AST is really interesting (take a look at the tutorial). It can compile and optimize at runtime, which is a must for dynamic. It can also run as a pure interpreter.

    I consider using LLVM in a project that involves creating a Tcl-like language. Tcl is heavily dynamic, so I don't know what this implies at this stage, but I'm confident that I'll get better performances than the current bytecode-based core.

提交回复
热议问题