[Lazarus] Multi-threading support in IDE
Florian Klaempfl
florian at freepascal.org
Thu Aug 13 21:39:44 CEST 2009
Graeme Geldenhuys schrieb:
> Vincent Snijders wrote:
>>
>> Yes, it is more efficient. The fp ide also doesn't create a new process.
>
> Interesting, I'll take a peak at that.
>
>
>> The disadvantage of using the same process is that the coupling is
>> much tighter: No easy switching between compiler versions, and
>> crashing the compiler crashes the IDE.
>
> Can somebody that is more familiar with the internals of the Lazarus IDE
> tell me, would it be hard to implement the IDE with FPC built in,
Probably simple. The compiler is started by the compile function in
fpc/compiler/compiler.pas and takes simply a command line arguments. You
need to set some hooks though to catch messages, see e.g.
fpc/ide/fpcompile.pas (especially DoCompile starting at 868) and
fpc/ide/fpintf.pas.
More information about the Lazarus
mailing list