Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel

fpc-devel · 2025-10

  1. Optimization breaks check for overridden function / Is there a better way to check?

    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…

    David Jenkins, Bart, Marc Weustink
    11
  2. Question about generics / what is checked, and what not -- and why?

    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…

    Martin Frb, Hairy Pixels, Sven Barth
    5
  3. sub-optimal code for UniqueString

    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…

    Martin Frb
    0
  4. Constant propagation: params yes, locals no -- Is it an oversight, or more complex?

    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…

    Martin Frb
    0
  5. LLM / MCP

    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…

    Michael Van Canneyt
    0
  6. Constant eval (and dead code removal) - comparing 2 methods for being the same.

    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  …

    Martin Frb, Florian Klämpfl
    2
  7. Wrong code generation bug in FPC 3.2.3 (likely 324RC too)

    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…

    Martin Frb
    1
  8. constant propagation // kinda

    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.…

    Martin Frb
    0
  9. known issue? specialize of generic of other unit with -alr (generate asm) does not include line-num comment nor src comments

    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…

    Martin Frb
    0
  10. @J. Gareth / Kit: Idea for peephole

    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…

    Martin Frb, Stefan Glienke
    1