Liste des Groupes | Revenir à cl c |
On 24/03/2024 14:52, David Brown wrote:On 23/03/2024 22:21, bart wrote:
I think that is because your gcc toolchain is creating 64-bit Windows binaries, while the others are creating 32-bit binaries. I could be wrong here, of course.There were two separate points here. One is that a gcc-compiled version won't work because exe images are not loaded at 0x40'0000.This works on DMC, tcc, mcc, lccwin, but not gcc because that loads programs at high addresses. The problem being that the address involved, while belonging to the program, is outside of any C data objects.>
>
I think you are being quite unreasonable in blaming gcc - or C - for generating code that cannot access that particular arbitrary address!
The other was me speculating whether the access to 0x40'0000, even when valid memory for this process, was UB in C.Trying to access non-existent memory is UB, yes. I can't imagine a language where such a thing would be anything else than undefined behaviour, or defined as a hard run-time error.
Les messages affichés proviennent d'usenet.