r/Compilers • u/matthieum • Jul 28 '26
Inside Zig's Incremental Compilation | mlugg
https://mlugg.co.uk/posts/incremental-compilation-internals/
46
Upvotes
r/Compilers • u/matthieum • Jul 28 '26
View all comments
Show parent comment
1
u/matthieum Jul 29 '26
I'm a bit skeptical about the difficulties in incremental linking too, to be honest. It seems too easy to forget to adjust an offset/location somewhere, and good luck to the poor chap to whom this happens.
I wonder if a simpler implementation -- move if there's space, relink from scratch otherwise -- wouldn't be sufficient. It'd be easier, and more likely to be correct, I expect.