Cygwin hosted cross compilers

gregory.menke at gsfc.nasa.gov gregory.menke at gsfc.nasa.gov
Thu Jun 28 17:59:25 UTC 2001


Hi,

We're sucessfully using the Linux hosted MIPS compilers for our R3000
target, and are trying to bring up the Cygwin hosted ones so those
cursed with Windows can compile the app.  

The compilation is working OK, except a number of source files don't
end up with the identical .o output file.  About half end up OK.  For
those that aren't identical, comparing nm and objdump's output for the
.o files generated for given .c file by the Cygwin and Linux hosted
compilers shows the same symbols and the same assembly, but the
addresses are shifted between a few bytes and quite a number.  Its
almost as if sizeof() is returning something different- or code/data
alignment is being performed differently.

This looks non-trivial because the same code compiled under Linux
runs, but under Cygwin, fails with unaligned access exceptions in
known good code.  RTEMS itself does start up, however.

I'm compiling under Cygwin using the ntvdm registry hack, and the
makefile is identical for builds on either host.

I'm about ready do start more carefully comparing the output from a
test .c file and try to narrow things down.  Has anyone seen similar
behavior under Cygwin?

Thanks,

Gregm




More information about the users mailing list