Sign in Join

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

Mailing lists / fpc-devel / 2006-10

Recompilation optimization patch

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Micha Nelissen

Hi,

I'm trying to reduce the number of recompilation needed of units. Currently compiler very often recompiles due to possibility of changed inlined functions being present. Attached patch tries store this info in ppu (whether inlined functions are present). Is this a good patch ?

Btw, question: is po_inline set for a pd's procoptions when optimizations are disabled (so functions are not inlined anyway, I assume?)

Micha

Reply by email

Peter Vreman
to Micha Nelissen
Show quoted text 10 lines
Hi, I'm trying to reduce the number of recompilation needed of units. Currently compiler very often recompiles due to possibility of changed inlined functions being present. Attached patch tries store this info in ppu (whether inlined functions are present). Is this a good patch ? Btw, question: is po_inline set for a pd's procoptions when optimizations are disabled (so functions are not inlined anyway, I assume?)

This is not correct. Also other things like calling conventions can change in delphi mode. In ppu.pas at line 33 you can enable {$define INTFPPU} then a ppu.intf will be generated that contains the info from the interface only.

A rewrite of the unit handling is planned, but that will be a 2.3 todo.

Reply by email

Micha Nelissen
to Peter Vreman
Peter Vreman wrote
This is not correct. Also other things like calling conventions can change in delphi mode. In ppu.pas at line 33 you can enable {$define INTFPPU}

Because the calling convention is only specified in the implementation ?

Micha

Reply by email