fpc-devel · 2025-10
- Optimization breaks check for overridden function / Is there a better way to check?11
What is the best way to check if a virtual function in a base class has been overridden by a class that inherits the base class? In LCL TPrinter.pas the following check…
- Question about generics / what is checked, and what not -- and why?5
Just out of curiosity.... I understand when the generic is parsed, the compiler makes checks that it compiles. So certain things must be known. Some things the compiler…
- sub-optimal code for UniqueString0
Well, I know its just a function, and the compiler does not know.... (at least 3.2.3 / don't know if 3.3.1 is doing better). But in the below code, uniquestring has to…
- Constant propagation: params yes, locals no -- Is it an oversight, or more complex?0
If you inline code, and call it with constants for its parameters, then those constants are propagated through the entire inlined method. In the example below (most opts…
- LLM / MCP0
For those that are busy with LLM and MCP: I've created 2 repos: https://gitlab.com/freepascal.org/llm This contains client-side classes that allow you to use the APIs of…
- Constant eval (and dead code removal) - comparing 2 methods for being the same.2
In the code if true then begin write(1); end else begin write(2); end; the "else" block will not generate code (at least O2 and higher). But …
- Wrong code generation bug in FPC 3.2.3 (likely 324RC too)1
Likely affecting the RC too / Found in 3.2.3 420f7af213 There is an issue in the code generator. Under some circumstances inlined code will use the same physical memory…
- constant propagation // kinda0
Just came arccos a case for optimisation. I was wondering if its worth a feature request. Especially since I guess the compiler may already have most of the info needed.…
- known issue? specialize of generic of other unit with -alr (generate asm) does not include line-num comment nor src comments0
Is this a know issue? Is it an issue at all? Normally -al / -alr will generate nice comments # [872] if AnInsertSize > 0 then the line number, and source. But if…
- @J. Gareth / Kit: Idea for peephole1
there has been so many improvements to the peephole optimiser (big thanks for them), I was at first surprised it didn't pick up the below. But then, of course its a load…
