At 10:51 AM 10/26/2001 -0400, Jason Gloudon wrote:
>On Fri, Oct 26, 2001 at 06:54:32AM -0700, Brent Dax wrote:
>
> > What if I want my compiler to be lazy?  Do you have the right to punish
> > me for my laziness by making me add constant folding to my optimizer (or
> > perhaps making me *write* an optimizer just to do constant folding)?
>
>You don't have to fold constants :

More importantly, the answer to the preceeding question can be "Yes".

If it turns out we need to trim back the number of opcode functions, the 
"all constants" variant is going to be the first to go. While that can't 
necessarily be done completely at compile time for PMC constants, for 
string, integer, and numeric constants it usually can be.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to