Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2001-05

inlines

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aleksey V. Vaneev

Hello,

Yes, I remember that inlines are getting to be implemented in the future. Just wanted to ask if it is possible to hardcode try-block-handling routines into the source not using the call statement. This could be also done for ansistring handling because it is so weird to see push&call&ret to some simple comparison or something like that.

I also wanted to ask about statically declared variables (I've asked this earlier but didn't see any answer maybe because my subscription was temporarily disabled). Are static variables zeroed before program's start? If not, is it possible to implement this?

Best regards,
Aleksey

Reply by email

Michael Van Canneyt
to Aleksey V. Vaneev
Aleksey V. Vaneev wrote 6 lines
Hello, Yes, I remember that inlines are getting to be implemented in the future. Just wanted to ask if it is possible to hardcode try-block-handling routines into the source not using the call statement.

We are working on rewriting the exception handling in the 1.1 compiler, and we are trying to optimize them. Some calls are inevitable, though.

This could be also done for ansistring handling because it is so weird to see push&call&ret to some simple comparison or something like that.

This is not possible, because ansistrings are reference counted and need a lot of extra handling. Delphi also uses helper routines for ansistring handling. For good reason.

I also wanted to ask about statically declared variables (I've asked this earlier but didn't see any answer maybe because my subscription was temporarily disabled). Are static variables zeroed before program's start? If not, is it possible to implement this?

Normally, all global variables are zeroed out.

Michael.

Reply by email