[M3devel] unnecessary temporaries in m3cc/parse.c

Jay K jay.krell at cornell.edu
Mon Oct 4 12:35:25 CEST 2010


The first bunch are gone now.
The second few are more work and less interesting. Floating point -- meh.
stabilize_reference I sprinkled all around.

   - Jay

________________________________
> Subject: Re: [M3devel] unnecessary temporaries in m3cc/parse.c
> From: hosking at cs.purdue.edu
> Date: Sun, 3 Oct 2010 17:05:40 -0400
> CC: m3devel at elegosoft.com
> To: jay.krell at cornell.edu
>
> Seems reasonable. The reasons may be lost in the mists of time...
>
> 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 3 Oct 2010, at 04:00, Jay K wrote:
>
>
> I fail to understand why the following need explicit temporaries:
>
> check_nil
> check_lo
> check_hi
> check_range
> check_eq
> shift
> rotate
>
> probably even:
> round
> floor
> ceiling
>
> but floating point doesn't matter so much.
>
> "stabilize_reference" can be used to avoid recomputing values.
>
> - Jay
>
>
 		 	   		  


More information about the M3devel mailing list