|
compiler dev is fun because you get to say and type sexp a lot
|
# ¿ Jun 28, 2017 00:52 |
|
|
# ¿ May 1, 2024 23:22 |
|
Shinku ABOOKEN posted:how does incremental compilation work? what are the different approaches? are there any really good examples out there? i have no formal compiler experience but hacked together a compiler and code reloader for gta:sa's script engine, and the way i implemented it was storing the symbol list from the previous compile, and patching jumps that reference the changed code in the process's memory you could potentially do the same thing for binaries on-disk, but you might need a fancy executable container that allows you to shove new code in at the end? i don't actually know much about this stuff lol
|
# ¿ Jun 30, 2017 13:47 |
|
spent two weeks on my own hobby compiler trying to figure out why it's stack implementation returned 10006 for (5000 + 3 + 2) turns out the assembler had a destructive check in an inner loop instead of an outer loop when evaluating index-plus-offset (like stack[ebp - 4]) variables it would get emitted as stack[ebp - 4] once, then as stack[ebp] for the rest of the uses of that variable holy poo poo i was so mad at myself when i finally figured it out
|
# ¿ Jul 11, 2017 09:13 |