X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: Cross Platform Incompatabilites? Date: Sun, 08 Feb 2004 22:01:00 CST Organization: Rice University, Houston, TX Lines: 12 Message-ID: <402705fc.sandmann@clio.rice.edu> References: <3 DOT 0 DOT 1 DOT 16 DOT 20040204105918 DOT 33f75924 AT earthlink DOT net> <3 DOT 0 DOT 1 DOT 16 DOT 20040208120922 DOT 428f5b8a AT earthlink DOT net> NNTP-Posting-Host: clio.rice.edu X-Trace: joe.rice.edu 1076300013 3200 128.42.105.3 (9 Feb 2004 04:13:33 GMT) X-Complaints-To: abuse AT rice DOT edu NNTP-Posting-Date: Mon, 9 Feb 2004 04:13:33 +0000 (UTC) X-NewsEditor: ED-1.5.9 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > The differences are *possibly* generated in a routine which calculates the > integral under the curve of FFT*FFT*2, using the trapezoidal rule. The > error appears in only one integration of a calculation of probably a > hundred integrations. The integration routine does not seem to have errors. I would suggest adding the line: int _crt0_startup_flags = _CRT0_FLAG_FILL_DEADBEEF; to your main program. Does this cause all platforms to behave the same? (get the same answers?) This flag helps find differences due to uninitialized memory, which may be different values on different platforms.