[fpc-devel]raise's exceptaddr

Aleksey V. Vaneev picoder at sbis.komi.ru
Fri May 3 21:11:10 CEST 2002


Hello,

  Could you implement a dedicated exceptaddr frame creation for raise
  statements? Because now if raise uses some ansistring constructor,
  it automatically creates exception frame for the whole procedure
  where raise was placed. But in most cases exception is not raised
  and exception frame becames a burden for the whole procedure,
  especially if ansistrings generally were not used.

  Right now I have a "on-the-knee" solution - I'm just creating a local
  subprocedure called like "doraise" that just raises an exception.
  This way exception frame is not created in the main procedure, but
  is created "in time" when the exception raise is needed.

  This is maybe not a "general case optimisation", but it is an
  obvious way to sped up things if exceptions were used.

Best regards,
 Aleksey                          mailto:picoder at sbis.komi.ru






More information about the fpc-devel mailing list