Wren 💜
(fae/fem/she/they)
One time I mistyped make fmt which gave me an amazing idea… #wcc
One time I mistyped make fmt which gave me an amazing idea… #wcc
I added if statements to #wcc and recorded a little demo on asciinema of compiling as I type :) I think it’s pretty cool!
Today I’ve been working on getting the wcc executable to be as small as possible, including size optimizations, binary stripping, compiling statically, using my own stdlib, using defines to turn some features off. So far I’ve made it all the way down to just 36K! That’s small enough to fit into the uxn varvara system’s memory. Of course that’s x86 instructions, and varvara compilation might be bigger, but it might just work! #wcc
now I wrote an alternate backend for the errors that can output json! #wcc
I’m really happy with how modular the entire codebase is tbh :)
Now I’m implementing some basic error handling & error recovery! #wcc
I added local variables so now I can compile code like this: #wcc
oh, I forgot to attach the assembly in my last post, here it is!
I wrote a small C compiler called wcc! It’s not much at the moment, but it’s capable of compiling a small hello world program and I think it’s already super neat :) I attached the generated assembly (which can be compiled with FASM and linked with the c standard library) because I think the generated code is very interesting. The IR is [stack-based](https://en…
oh, I guess I never made gifs work on here…