Currenfly multitasking making compiler fur a littel language targetting brainfook + trying to make a GCC plugin thaf adds one (1) pragma
(making teh GCC plugin is wey harder, for those cuwious)
Currenfly multitasking making compiler fur a littel language targetting brainfook + trying to make a GCC plugin thaf adds one (1) pragma
(making teh GCC plugin is wey harder, for those cuwious)
I've never worked on the GCC codebase ... I wrote a toy compiler for pascal for a school project once and I found that fun, but my brain is not one that's organized well for reading other people's code + comprehending it quickly. GCC seems like a dark labyrinth that I'd really struggle with ;_;
I've bean reading manuals andf examples all day since yesterfay and I still am nof sure exactly whaf I am supposed to do, hehe
Supposedly I jusf need to make a dynamic library thaf has a "plug_init" function and in it I register callbacks to teh command I like, like if I want to add a #pragma meow I jusf need to call teh Pragma Registering function wiff "meow" + a function that will bee called when the pragma is executed
Buf I can'f find full examples of custom pragmas anywhere so idk whaf that callback is supposed to look like, whaf its input is supposed to be, how to use it to output code, etc
So I am jusf decided to hav a side project cuz that was getting too frustrating, hehe
Large, old, sparsely documented codebases are basically cursed grimoires that do mostly mundane things but inflict significant psychic damage.