develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH] Turn off constant folding and optimization

Thread Previous | Thread Next
From:
Gurusamy Sarathy
Date:
July 24, 2001 11:46
Subject:
Re: [PATCH] Turn off constant folding and optimization
Message ID:
200107241845.f6OIjqf25181@smtp3.ActiveState.com
On Tue, 24 Jul 2001 09:19:31 +0200, Arthur Bergman wrote:
>If PL_no_optimize is true, then we won't move the constants to the pad and
>that is where we expect to find them! Maybe we should move the constants to
>the pad earlier? 
>
>Sarathy, why wait until peep to move consts to the pad?

IIRC, doing it earlier messed up some cases involving constants where the
constants ended up in the wrong pad.

I think disabling all of peep() is probably the wrong approach to disabling
optimizations, because peep() has always done things that aren't optimizations.
It needs to be more fine-grained than peep() (only certain branches of
peep(), maybe).


Sarathy
gsar@ActiveState.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About