Article View: comp.sys.amiga.tech
Article #4047Re: DICE
From: Allan Duncan
Date: Wed, 13 Jun 1990 22:11
Date: Wed, 13 Jun 1990 22:11
27 lines
1642 bytes
1642 bytes
From article <dillon.4040@overload.UUCP>, by dillon@overload.UUCP (Matthew Dillon):
[...]
> As I say in the documentation, this is the first major release of DICE
> and it does not support everything yet... floating point and bit
^^^^^^^^^^^^^^
> fields, for example, have not been implemented. On the otherhand,
> it's nearly 100% ANSI and all of DICE compiles itself (as well as DME,
> all of the UUCP1.06 distribution now, and everything else I'm doing).
> I.E., it is a real compiler that generates real code.
[...]
When you get around to that, see if you can leave some expansion hooks
in for complex arithmetic! You'd be the first C compiler on the block
with that and have science and engineering types rushing to your
door :-).
Oh yeah, and a nice way of rounding float to int - I had to roll a
kludge yesterday for it :-
#define round(x) ((x)<0.0?(x)-0.0001:(x)+0.0001)
I'm not about to start religious wars here, it's just that I wonder why
the ANSI mob didn't provide for the capability to extend the type range
of the basic arithmetic operators.
Allan Duncan ACSnet a.duncan@trl.oz
ARPA a.duncan%trl.oz.au@uunet.uu.net
UUCP {uunet,hplabs,ukc}!munnari!trl.oz.au!a.duncan
Telecom Research Labs, PO Box 249, Clayton, Victoria, 3168, Australia.
Technical Details
Message-ID:
<1791@trlluna.trl.oz>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!munnari.oz.au!bruce!trlluna!rhea.trl.oz.au!aduncanReferences:
<dillon.4040@overload.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!munnari.oz.au!bruce!trlluna!rhea.trl.oz.au!aduncan From: aduncan@rhea.trl.oz.au (Allan Duncan) Newsgroups: comp.sys.amiga.tech Subject: Re: DICE Message-ID: <1791@trlluna.trl.oz> Date: 13 Jun 90 22:11:39 GMT References: <dillon.4040@overload.UUCP> Sender: root@trlluna.trl.oz Lines: 27