> > > Most notably - floating point arithmetic; which don't matter > > to many applications. > > This in particular will be fixed with gcc 3.3. Compile-time floating > point arithmetic will be done exactly identical in native and cross > compiles. (But even before 3.3, this should not be an issue for targets > using the standard IEEE format, only with non-IEEE targets.) >
That is, of course one of the issues. The i386 IEEE implementation is not the same as the mainframe, particularly when two variables are loaded into registers and arithmetic is applied. The result will be different. So, one set of "IEEE" arithmetic on a PC can get very different answers than the same arithmetic on a 390. I don't know how gcc handles this. That is, I believe, one of the reasons why #pragma STDC FENV_ACCESS was added to the C99 standard. - Dave Rivers - -- [EMAIL PROTECTED] Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com