Just the example from the freepascal wiki:
program Hello; begin writeln ('Hello, world.'); readln; end.
aware of the fact that there hasn't been a post for 2 years, here solution thatNot working site if you use a adblocker/spamblocker/antitracing (for a good reason)
works on my pi zero:
https://peppe8o.com/using-pascal-programming-language-with-raspberry-pi/