Closed tk-ka closed 2 years ago
That's a very interesting observation, that triggered an idea! I agree, it's indeed related to #14 so I will post it there. Just note that #14 is observed on my 32-bit architecture. Yours appears to be 64-bit since your 'long' is already 64 bits.
see #14
So this is due to our very simple implementation of the Syscall emulation, that does not copy or re-align data structures for use with the host syscall interface. With an alignment of 64 bit, it works on most systems.
printf() does not work correctly for 64 Bit integers. This might be related to #14 .
Test-code:
Expected output:
Observed output (code just added to main.c of printf test-software):