Squint
Squint copied to clipboard
Implement backend code generation in one shared library per architecture
Implement codegen() as shared libraries to support multiple architectures. codegen() is a self contained function that converts an an input IR array into a .text segment that can be executed.
There are a few spots in the compiler where a tiny block of assembly code is genertaed directly into an array, and those can be broken out as other functions in the shared library.