[fpc-devel] extending fpc for integration

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Sep 30 00:09:32 CEST 2010


On Wed, 29 Sep 2010 20:09:26 +0200
Florian Klämpfl <florian at freepascal.org> wrote:

> Am 29.09.2010 20:00, schrieb Mattias Gaertner:
> > Hi fpc devels,
> > 
> > I did some test with an integrated fpc (e.g. in an IDE) and sharing
> > redirecting the file access. For example FPC could use the files
> > of the IDE. This would allow to compile without saving to disk, so the
> > compiler could be used for quick syntax checks and similar tasks.
> > Note: Under Linux the speed up is hardly measurable. But
> > maybe Windows can gain a bit.
> > 
> > I changed a few calls to Assign/Reset/Close to use the TCFileStream
> > (e.g. for the ppu reader) and added the possibility to define a custom
> > TCFileStream class. An IDE can then redirect the file access.
> > I guess the maintenance cost is pretty low for you fpc devels.
> > 
> > Should I create a feature request with the patch or are there some
> 
> Create a feature request with patch. 

ok. I will wait for DoDi's answer about the existing global hooks. Maybe
the things I need are already there and I was just too blind to see
them.


> I guess it is based on the exisiting compiler.pas interface?

I used that for testing. I didn't change it.
In the next step I will play with TDirectoryCache.


Mattias



More information about the fpc-devel mailing list