What's a good way to convert C headers to constant declarations and foreign imports of another language?

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

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

  • bcc is my private C compiler, and the -mheaders option produces an import module that can be used from my private 'M' language (here, creating stb_image.m).

  • chibicc

    A small C compiler

  • Yeah, that makes sense. I'm actually seriously considering using parts of https://github.com/rui314/chibicc for this project. Or maybe giving up and continue doing it by regex + hand is not that bad of an option. Thank you for sharing your experience!

  • 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