What do you think about a C transpiler?

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
  • cyclone

    Cyclone is a type- and memory-safe dialect of C (by pippijn)

  • carbon-lang

    Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)

    Not a bad idea and not new either. The Nim compiler generates C code and compiles that in the background. Not strictly a transpiler, but similar in principle. Google's Carbon I think is currently as a C++ transpiler - at least I read that somewhere, someone please correct me.

  • 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.

  • Nim

    Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

    Not a bad idea and not new either. The Nim compiler generates C code and compiles that in the background. Not strictly a transpiler, but similar in principle. Google's Carbon I think is currently as a C++ transpiler - at least I read that somewhere, someone please correct me.

  • cake

    Cake a C23 front end and transpiler written in C (by thradams)

    Have a look in my C23 transpiler. https://github.com/thradams/cake

  • Oberon

    Oberon parser, code model & browser, compiler and IDE with debugger

    My Oberon compiler (https://github.com/rochus-keller/Oberon) does exactly that. But the C transpiler is only used when development and debugging are done, because debugging based on the generated C code makes everything much more complicated and platform dependent. Instead my compiler also generates CLI IL so I can use the excellent, lean, and cross-platform Mono engine integrated with my IDE re-using the Mono performance and debugging features; this is transparent to the developer; just in the end he/she generates (platform independent) C code and compiles it using e.g. GCC, CLANG or MSVC.

  • cedro

    C programming language extension: Cedro pre-processor

    Currently, it does not make any difference whether this is one token or more because it is sent to the compiler exactly the same as it came in, but you could write a macro/plugin (src/macros/] that recognized this pattern and inserted a space right before the minus “-” sign.

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