its a good thing dragons dont exist in real life otherwise it might actually be hard to write a compiler
@littlefox so youre the one whos making everyone write those books. for shame
@littlefox now i have to learn all these principles, techniques, and tools
@mothcompute @littlefox i really need to write another compiler… the one from 2022 wasn’t enough, my autism requires more
@lanodan @littlefox @mothcompute yes, that’s the 2022 attempt. it compiled to static ELFs
i should just make that repo public
@lanodan @domi @mothcompute oh no
@lanodan @littlefox @mothcompute then, there’s also https://github.com/meithecatte/cursedcc which is infinitely more impressive. thank you @mei very cool <3
@lanodan @littlefox @mothcompute for your reading pleasure https://git.sakamoto.pl/domi/shiv
i’m not really happy with this code but shrug it does Things
@domi @littlefox @mothcompute Kind of fun to look at.
btw might want to use dollar-single-quote ($'\x50'
) to avoid xxd+tr, that syntax even made it to POSIX.1-2024.
@lanodan @littlefox @mothcompute my coding style has evolved quite far since then, I would write this much differently now :p
for instance, 2022 me still wrote function
before every function, which serves no purpose…
@mothcompute My journey into the ~~horrors~~ wonders of x86 would've ended in defeat long ago if it were not for dragons.
@noisytoot @littlefox @lanodan @mothcompute don’t care
it’s my shit project from 3 years ago, i only made it public so i can show it to y’all in this thread xD
LET IT BE KNOWN: everyone is permitted to do everything with the code, as long as you have fun. Here, that’s your license