Forgive me if I should know this but I notice Compiler Explorer pgm output shows only the last byte of the value C++ pgm returns though the assembly shows a different 4-byte value being returned.
https://godbolt.org/z/Yx1nf9oar
Wandbox does the same: https://wandbox.org/permlink/llqGvLRGw2sSHnhT
But running the exe on Windows after compiling with GCC on MinGW returns the complete value.
Is this an OS thing: Windows v Linux? Sorry me no Linux.
#cpp #cplusplus #windows #linux #compilerexplorer #wandbox @compiler_explorer
#cpp #cplusplus #windows #linux #compilerexplorer #wandbox