[Lazarus] Multi-threading support in IDE

Michael Van Canneyt michael at freepascal.org
Thu Aug 13 21:26:40 CEST 2009



On Thu, 13 Aug 2009, Graeme Geldenhuys wrote:

> 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, so that 
> compiling can be done in a separate thread instead of separate process? I'll 
> do the work of course - if it's not a major job. ;-) 
> This would simply be an exercise to fulfill my own curiosity. Maybe if it 
> works well and does not require to much code changes, it could be wrapped in 
> IFDEF's for more advanced users that want to try it for themselves.
>
> Possible or not (in the Lazarus IDE), I'll take a look at the FP IDE to see 
> how such an integration works. All in the name of learning multi-threading. 
> ;-)

The FP IDE does not use multi-threading. While the compiler is compiling,
the IDE is stuck.

> PS:
> Does Delphi or Kylix have the compilers built-in or do they work similar to 
> Lazarus IDE?

As far as I know:

They have the compiler in a DLL which is loaded when the IDE starts.

Michael.




More information about the Lazarus mailing list