Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Compiler for Carp #12

@firebolt55439

Description

@firebolt55439

I have taken a look at the CARP instruction set and the basic implementation.
I consider myself to be proficient in C and C++, and am volunteering to create a compiler fork/branch.

Suggestions:

  1. Write the compiler in C++ using LLVM as a backend, allowing for maximum flexibility.
  2. Compile CARP to C and leverage existing C compilers.

A note:
When compiling to another language, for example LLVM IR or C, due to the inherent nature of a stack VM, constant folding is trivial. At compile-time. The compiler will have to make tradeoffs between how many operations (e.g. addition, bitwise, etc.) it will do at compile time or how many it will relegate to the backend for code generation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions