Periodic reminder: Don’t compile to C.
-
-
No, you just put the necessary data structures for walking live objects inside your objects rather than trying to access some underlying layer that would make it intrinsically nonportable.
-
How, without runtime overhead? I see no way around having to spill every root to the stack around every function call (and that’s assuming you can walk your stack). “Portable” GC is a nonstarter from a performance point of view.
- 7 more replies
New conversation -
-
-
Fair, I've never tried to write a GC language targeting C. The portability situation is better now, sure; back when I started playing with LLVM even Windows support was shaky.
-
A GC language could target C by storing all heap pointers on a shadow stack or similar. Remember how the Factor runtime used macros and later smart pointers for that
- 11 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.