Open SamuraiCrow opened 1 year ago
A GCC backend outright may prove to be more effortless than LibGCCJIT. I've changed the name if this issue accordingly.
Needs docs from https://github.com/rofirrim/gcc-tiny for implementation.
https://thinkingeek.com/gcc-tiny/ is the tutorial than accompanies the gcc-tiny sources in the previous comment.
A new fork of GCC-Tiny is being updated by myself and presently one other, to update it to newer GCC versions. If anyone wants to join, let me know.
Current API docs are at https://gcc.gnu.org/onlinedocs/gcc-13.2.0/jit/
Despite the name, LibGCCJIT is a generic optimizer and backend for any frontend. It was declared stable in about GCC10 or so.
Benefits include static single-assign architecture (SSA), and basic block support to improve branch reductions and multiple processor and processor generation backends.
Prerequisites include #5 and replaces #3 , #6 and #2 .