Is it possible to do runtime compilation and execution of C code?

This page summarizes the projects mentioned and recommended in the original post on /r/LLVM

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • score

    ossia score, an interactive sequencer for the intermedia arts

  • I use it for live c++ recompilation in https://ossia.io - all the code is in there. https://github.com/ossia/score/tree/master/src/plugins/score-plugin-jit/JitCpp

  • MemoryModule

    Library to load a DLL from memory.

  • LLVM IR isn’t designed to be executable, it’s designed to be translated to machine code. but you can probably use libclang to compile a file to a DLL and then load it without using the disk (e.g. using https://github.com/fancycode/MemoryModule on Windows). if you can’t avoid using the disk for any of the step, just use temporary files

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts