News for hackers. Stuff that matters.
Re:Let's write a compiler, part 1: Introduction, selecting a... by reeealloc on Saturday August 14, 2021 @06:22PM (#28184445)
Wrote a compiler with .NET last year. Used F# for the Lexing/Parsing to an AST and C# for LLVM IR code gen. Interop was so easy, but the docs for the C# LLVM bindings were not so great, so it's a little incomplete. I only got it to effectively interpret, never actually executed a whole outputted object file.
Re:Let's write a compiler, part 1: Introduction, selecting a... by tester756 on Saturday August 14, 2021 @06:29PM (#28184487)
When I've been messing with this stuff, then I decided to manually write LLVM IR instead of using C#'s LLVM Bindings
Re:Let's write a compiler, part 1: Introduction, selecting a... by lostmsu on Saturday August 14, 2021 @08:19PM (#28185115)
With .NET you could also emit IL.
Re:Let's write a compiler, part 1: Introduction, selecting a... by fishmaster on Sunday August 15, 2021 @08:58AM (#28188426)
How was F# for the task?