Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement compiler backend (Clang/LLVM) #5

Open
assyrianic opened this issue Aug 28, 2017 · 3 comments
Open

Implement compiler backend (Clang/LLVM) #5

assyrianic opened this issue Aug 28, 2017 · 3 comments

Comments

@assyrianic
Copy link
Owner

implement a compiler or compiler backend that generates bytecode for this VM. Possibility: Make GCC output Tagha bytecode using a custom GCC Backend but will take alot of effort. Maybe use Clang/LLVM backend to output Tagha bytecode?

@assyrianic assyrianic added this to the compatibility of as much of the C standards possible, including C11. milestone Aug 28, 2017
@assyrianic
Copy link
Owner Author

alternative, quick build a compiler via flex + bison?

@assyrianic assyrianic changed the title Implement a compiler or compiler backend Implement compiler backend (Clang/LLVM) Nov 30, 2017
@assyrianic
Copy link
Owner Author

writing down some advice someone gave me considering this.

"You don't embed clang though. You build a backend so you can write binaries for tagha in any llvm language. You write an os kernel for tagha, allowing the compiler to be run in the machine.

A kernel is a program written for the machine that manages the filesystem, peripherals, and programs running on the machine. With a kernel, you can run compiling systems that are entirely contained in the machine.
Otherwise, you use an external machine to compile the binary, then move the binary into the machine to be run as its program."

@assyrianic assyrianic removed this from the compatibility of as much of the C standards possible, including C11. milestone May 11, 2020
@assyrianic
Copy link
Owner Author

saving this for later -> https://github.com/lowRISC/riscv-llvm/tree/master/docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant