[M3devel] [M3commit] CVS Update: cm3
Jay K
jay.krell at cornell.edu
Fri Jan 29 22:02:01 CET 2010
There isn't really overflow here, just having trouble implementing longint.
For example
ToInt(FIRST(INTEGER) & MAXU32)) overflows, though it shouldn't matter.
- Jay
> Date: Fri, 29 Jan 2010 12:11:39 -0600
> From: rodney_bates at lcwb.coop
> To: m3devel at elegosoft.com
> Subject: Re: [M3devel] [M3commit] CVS Update: cm3
>
>
>
> Tony Hosking wrote:
> > Note that the front-end refuses to do any constant folding that results
> > in overflow. Instead, it generates code that will execute at run-time.
> > If that causes a run-time error then fine. Similarly, the back-end
> > should never do constant folding for things that overflow.
>
> Hmm, I didn't know that. I think that is a very good idea. It really
> preserves language semantics, while gaining efficiency where possible.
>
>
> >
> > On 29 Jan 2010, at 11:48, Jay K wrote:
> >
> >> For now I'm treating the error as a warning and continuing on.
> >>
> >> - Jay
> >>
> >>
> >> ------------------------------------------------------------------------
> >> From: hosking at cs.purdue.edu <mailto:hosking at cs.purdue.edu>
> >> Date: Fri, 29 Jan 2010 10:31:35 -0500
> >> To: jkrell at elego.de <mailto:jkrell at elego.de>
> >> CC: m3commit at elegosoft.com <mailto:m3commit at elegosoft.com>
> >> Subject: Re: [M3commit] CVS Update: cm3
> >>
> >> Why do you need that?
> >>
> >> Antony Hosking | Associate Professor | Computer Science | Purdue
> >> University
> >> 305 N. University Street | West Lafayette | IN 47907 | USA
> >> Office +1 765 494 6001 | Mobile +1 765 427 5484
> >>
> >>
> >>
> >>
> >> On 29 Jan 2010, at 09:57, Jay Krell wrote:
> >>
> >> CVSROOT: /usr/cvs
> >> Changes by: jkrell at birch. 10/01/29 09:57:33
> >>
> >> Modified files:
> >> cm3/m3-sys/m3middle/src/: Target.m3
> >>
> >> Log message:
> >> in ToInt and IntI, do the conversion even if there is overflow
> >> (still returning FALSE for overflow)
> >>
> >>
> >>
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100129/6cdd7e37/attachment-0002.html>
More information about the M3devel
mailing list