FreePascal

FreePascal grammar, lexer, parser and code browser (by rochus-keller)

FreePascal Alternatives

Similar projects and alternatives to FreePascal

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better FreePascal alternative or higher similarity.

FreePascal reviews and mentions

Posts with mentions or reviews of FreePascal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-08.
  • A FreePascal parser written in C++
    1 project | news.ycombinator.com | 30 Jul 2023
  • Why Use Pascal?
    5 projects | news.ycombinator.com | 8 Jul 2023
    > Thanks for the hints. I was already concerned that I would have to analyze the source code directly myself, and so I started to build tools for this purpose (https://github.com/rochus-keller/FreePascal).

    FWIW you may want to check out the fcl-passrc package[0] which provides units for scanning and creating a syntax tree from FPC source code, including some helpers like resolving references.

    It is used by the fpdoc documentation generator and the pas2js transpiler that converts Free Pascal source code to JavaScript, both official FPC projects. fcl-passrc is itself part of Free Pascal.

    > I read somewhere that there are issues with higher optimization levels. Can you confirm that?

    AFAIK the main issue is that -O4 enables some optimizations that may break code that relies on things like having the exact same math output as non-optimized versions as it enables FASTMATH, code that relies on classes having specific field order (technically class field order is not guaranteed to remain the same) since -O4 enables reordering the fields to remove unnecessary padding and code that depends on runtime errors or exceptions being thrown from code that the compiler (in -O4) decided it has not explicit side effects and removed it.

    These are not "issues" per-se but Lazarus labels -O4 as having "aggressive optimizations, beware" which might give a false impression.

    Aside from that there might be bugs, but that is the case with any compiler.

    [0] https://wiki.freepascal.org/fcl-passrc

Stats

Basic FreePascal repo stats
3
13
6.2
9 months ago

rochus-keller/FreePascal is an open source project licensed under GNU General Public License v3.0 only which is an OSI approved license.

The primary programming language of FreePascal is C++.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com