2 ms·
There are lots of things that happen when a program runs that a compiler is unaware of. A compilers don't run during runtime... So I am confused what you mean b
by anfilt 4y ago
There are lots of things that happen when a program runs that a compiler is unaware of. A compilers don't run during runtime... So I am confused what you mean by mis-compilations.
As for runtime this is why people follow an ABI. Otherwise lots of things like dynamic linking ect... would not work.
- bonzini 4y agoSee here: https://news.ycombinator.com/item?id=35149189 https://news.ycombinator.com/item?id=35149189 QEMU uses stackful coroutines, and it's a great programming model but we ended up fighting the compiler more than once. You can build a more traditional enter/yield API on top of C++ coroutines, see for example https://lore.kernel.org/qemu-devel/YjMuyMcwG09Tohyh@redhat.com/T/#mbaf1f5429a42f6c9fc1daf4da082b7028b487f2e https://lore.kernel.org/qemu-devel/YjMuyMcwG09Tohyh@redhat.c....