Jason Turner

Results 217 comments of Jason Turner

I believe the premise of this topic is incorrect. All `static` variables are destroyed in the opposite order of construction. You might not know what order an object is going...

In my mind (but maybe because I teach this topic regularly) that's more of just a classic object lifetime problem. The order is still very well defined, you just weren't...

also this episode would need a note about how "const" might move something into the rodata section of the binary

https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options

# Conclusions; TL;DR Outline: * Mold is a fast and relatively new linker that claims to be about 30x faster than gnu gold https://github.com/rui314/mold/blob/main/docs/comparison.png * How much impact you'll see...

https://compiler-explorer.com/z/b4bqGPe4x

https://compiler-explorer.com/z/KhhhTP87c (but be sure to cover how that function can be rearranged to mitigate the question of initialization, also add in deprecated and C++23's attribute syntax for lambdas)