Compiler should use LLVM #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is better than raw assembly because:
ut it's not better in all ways too:
(writing this while on break at work lmao)
at the end of the day its good and bad in different ways so ill leave it up to you
Me personally I don't like LLVM very much. Generating ASM seems to work well so far and it compiles very fast.
Also doing "code -> ir -> another ir -> assembly" rather than "code -> ir -> assembly" seems weird
Another thing: Name an alternative to LLVM. I can think of only one (QBE). We should give LLVM some more competition. We may not be able to optimize to their extent, but we can make it easier to use. Ground's bytecode generation API is much more user-friendly than LLVM's generation API, which could mean in future we compete with LLVM which would be fun
Maybe in future we can add an LLVM backend but not today. Today is the day for assembly it seems.