Orlando Llanes wrote:
Before I begin, the reason I didn't notice this at first is because
the previous version of GPC compiled my program without a problem despite the following... I use external assembly routines that access variables declared in a Pascal unit (the assembler doesn't matter, it happens with both AS and NASM). To declare the variables defined in the Pascal unit, I declared them "common". Then I changed all "common" references to global references and added declarations in the .data section and the program no longer crashed. Weird.
Fine to hear so. However, did you find out what the previous GPC did differently so the problem did not occur? If you still have that version installed, can you compare the -S output of the previous and the current GPC version to see what's different? (Just to be sure it really isn't a code generation problem...)
Frank