My C-subset compiler can now interface with external C libraries and glibc using the systemv amd64 abi and a newly implemented "extern" keyword.
To showcase this, I got a raylib binding working for my custom C subset. Here is a raylib example program compiled using my compiler.
In order for this to work, I implemented struct passing (fully compliant with systemv abi) and automatic stack alignment (some instructions are quite pesky about that.)