[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WARNING! New experimental feature in the development version!


Sounds good. Thorough compilation checks are one reason I like C.


Jussi

On Wed, Mar 25, 2026 at 5:15 PM Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Hi,
>
> I have just pushed a new experimental feature: two pass compilation.
>
> This new compiler feature allows to detect unknown symbols.
>
> I added an option for that in the compiler, and a corresponding button
> in the project property in the IDE.
>
> The compiler flag for using two pass is '-p'.
>
> Beware that this is experimental, and that even if the option is not
> activated, there may be bugs that make the compilation fail, or worse
> make the interpreter crash because of a bug in the compiler.
>
> So be careful, save your projects, and tell me immediately if you
> encounter any bug or crash.
>
> As written in the window of the development version of the IDE, "USE AT
> YOUR OWN RISK!".
>
> This feature is not fully finished. At the moment it cannot detect
> symbols from classes whose name is not explicitly written in the code.
>
> For example, "A.B.C" is not checked if the class of "A.B" is not
> declared anywhere.
>
> All that is based on the following process:
>
> - Each component and library used by the project is loaded in the first
> pass.
>
> - An information file is generated for each project class in the '.desc'
> directory.
>
> - These files are loaded on demand during the second pass (the real
> compilation).
>
> At the moment, only unknown symbols are detected. But in the future,
> more errors may be detected: Bad number of arguments in a method call,
> suspicious type conversion... If you have any idea about that tell me.
>
> I apologize in advance for any problem you will encounter.
>
> Best regards,
>
> --
> Benoît Minisini.
>
>
>

References:
WARNING! New experimental feature in the development version!Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>