3 ms·
> register scanning isn't portable Certainly not but it wasn't particularly hard to implement either, I managed to do it with some simple inline assembly. Here
by matheusmoreira 3y ago
> register scanning isn't portable
Certainly not but it wasn't particularly hard to implement either, I managed to do it with some simple inline assembly. Here's my programming language's register spilling code:
https://github.com/lone-lang/lone/blob/master/architecture/x86_64/include/lone/architecture/garbage_collector.c https://github.com/lone-lang/lone/blob/master/architecture/x...
https://github.com/lone-lang/lone/blob/master/architecture/aarch64/include/lone/architecture/garbage_collector.c https://github.com/lone-lang/lone/blob/master/architecture/a...