[fpc-devel]raise's exceptaddr

Florian Klaempfl Florian.Klaempfl at gmx.de
Sun May 19 17:26:37 CEST 2002


At 18:19 17.05.02 +0400, you wrote:
>Hello,
>
> > But what when you have:
> >
> > case value of
> >   1 :
> >    ansistring operation
> >   2 :
> >    ansistring operation
> >   3 :
> >    ansistring operation
> >   else
> >    shortstring operation
> > end;
> >
> > Then with having the exceptionframe around the smallest possible 
> ansistring operation it
> > will generate the code 3 times.
>
>I'm not talking about such cases. I meant only RAISE statement,
>because its usage denotes an exceptional program's behaviour that
>is generally rare. And BTW, "case" example you've mentioned if you
>apply strategy I've proposed will be slow only in loops.
>
>Anyways, I think there is some research needed in this field -
>optimising stackframes insertion will obviously give a general speedup.

I totally agree with you but as you may know there are a lot of other
things which must be done, so this optimization is postboned by use except
somebody provides patch to implement it :/


>But anyways, "raise" optimisation could be very useful. (in fact, I'm
>forced to use doraise; procs now, but this is VERY unpleasant).
>
>Best regards,
>  Aleksey                          mailto:picoder at sbis.komi.ru
>
>
>
>_______________________________________________
>fpc-devel maillist  -  fpc-devel at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-devel






More information about the fpc-devel mailing list