Menu

Home

Trevor Blight

Welcome to pascal p5c

p5c is a full iso level 1 standard pascal compiler with conformant arrays, function parameters, arbitrary set sizes, and many other features.

It uses gnu c as intermediate code rather than p-code, so it is

  • fast, because gcc creates very fast compact highly optimised code
  • portable with very little effort, since all you need is all that is gcc to compile the p5c c source code.
    gcc runs on almost every system
  • able to work naturally & easily with existing c code libraries.
  • able to take advantage of c tools like valgrind or gcov code coverage analysis

Why Pascal?

  • Pascal is easy to learn and understand, yet powerful.
  • it is readable because it is close to natural language., so is easy to write and work with,
  • It helps you create reliable code -
    strong typing means your code is more likely to do what you intend. Many errors are found earlier at compile time, rather than at run time.
    Then there is extensive run time checking to precicely locate the source of any errors.
  • higher productivity.

Here's a quick refresh on the pascal language

p5c is simple enough for one person to understand, so it ideal for hobby compiler projects.
On the other hand, gcc produces some of the most highly optimised code around, so p5c programs will run extremely quickly.

It is closely based on the p5 compiler, which is a freely available and well documented ISO compliant pascal compiler.

Contents

the pascal language
using the p5c compiler
p5x - pascal extensions
implementation notes

Project Members:


Related

Wiki: The Pascal Language
Wiki: using the p5c compiler
Wiki: using the p5x compiler

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.