3 ms·
Sane languages just let you read the memory. If you're using C or something, there are only problems if the compiler can prove the memory is uninitialized (eith
by hansvm 3y ago
Sane languages just let you read the memory. If you're using C or something, there are only problems if the compiler can prove the memory is uninitialized (either at comptime or via runtime checks it definitely does not insert). Otherwise, the only reasonable codegen is to return the value at that location in RAM. Just pragma the function doing the dirty work as noinline, and then optimizations can't cross that boundary and mess up your day.