Article View: comp.lang.modula2
Article #2804Re: TopSpeed-Borland-Windows-DLLs
From: Bengt-Inge Dalenb ck
Date: Mon, 11 Sep 1995 07:48
Date: Mon, 11 Sep 1995 07:48
49 lines
2612 bytes
2612 bytes
dcollier@cix.compulink.co.uk ("David Collier") wrote:
> Loops and floating-point.
> I know this sounds silly, but maybe if you just wrote out the FOR loops
> as explicit code, A:=1 ; ..... ; INC(A) ; IF A< n THEN GOTO L1: ....
> Perhaps that would keep less in registers, and avoid your problem?
> Do you have the mathlib source?
Hi David,
I tried that (INC() etc.) because I had the same thought but it is not
only when loops are executed. That problem went away when I made a DLL
calling MATHLIB (and I also have a lot of loops).
There are in a few other cases, e.g. with Str.RealToStr, that calls
MATHLIB.IntPow and a few others and gives the wrong results. Since I have
the source to Str.MOD and, when I look closer into it, it has different
versions for _XTD amd _WINDOWS so *that* particular bug may be in the
source of the function. I will look into that.
The MATHLIB source is basically in CoreMath.A and it is included in
the SourceKit. In CoreMath.A is where one official fix was for a push-pop
mismatch under Windows. The second fix I got was in the form of a changed
pragma setting in the MATHLIB.DEF file "call(reg_saved..." but I don't
have the settings here.
Even if no obvious solution appears in the news-group the possibility
to discuss this may even make me find a solution myself. You know how it
is, sometimes it even helps telling your cat about the problem. And when
you have told him about it you say. Wait a second...Aaaha!
We all suffer from that M2 is not as spread as C/C++. If more had
tried programming for Windows using TSM2, the bug would probably have
been fixed while TS were still interested in it.
If anything comes up, I will post it here. Thanks so far.
--------------------------------
Bengt-Inge Dalenback, CATT
also at:
Department of Applied Acoustics
Chalmers University of Technology
Gothenburg, SWEDEN
e-mail: bid@ta.chalmers.se
fax : +46 31 145154
Technical Details
Message-ID:
<430pjq$cpu@nyheter.chalmers.se>Path:
arc1-ca.pugleaf.net!g0-mac7.ta.chalmers.se!bidReferences:
<42mhgl$jfd@nyheter.chalmers.se>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!g0-mac7.ta.chalmers.se!bid From: Bengt-Inge Dalenbยck <bid@ta.chalmers.se> Newsgroups: comp.lang.modula2 Subject: Re: TopSpeed-Borland-Windows-DLLs Date: 11 Sep 1995 07:48:10 GMT Organization: CATT & Dep. of Applied Acoustics, Chalmers Distribution: world Message-ID: <430pjq$cpu@nyheter.chalmers.se> References: <42mhgl$jfd@nyheter.chalmers.se> NNTP-Posting-Host: g0-mac7.ta.chalmers.se Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Nuntius 2.0.1_68K X-XXMessage-ID: <AC79B753DE01B84A@g0-mac7.ta.chalmers.se> X-XXDate: Mon, 11 Sep 1995 08:52:19 GMT