I give details of three good free Pascal compilers further down the page.
An aside: I became excited about the Arduino microcontroller a few years ago. It uses a C-like language, but if you can program in Pascal, you can learn to program the Arduino without great effort. You say "goodbye" to Pascal's finger- annoying ":=", but semicolons remain a "little joy" to contend with. There was some Arduino material here, but that is now on a page of its own: Arduino programming and use.)
Someday, please visit the introduction and guide, if only for this site's search tool!
To search this site....
(Versions ("FPC", "TP", "Pascalite") explained in the introduction and guide to the site.)
Start Here FPC version: Setting up. And some general points.FPC Pascal: I discovered the delights of FPC Pascal, aka Free Pascal, aka FPK Pascal in June 2007. While I may have to come back to this page and eat (or at least revise) my words, I strongly suspect that this is your best bet for an introduction to Pascal in a easy- to- use environment. I've written a separate page about its virtues, setting it up, and a small test program you can use to see the installation went okay. I will be very disappointed if this Pascal is not capable of serious work. It is the basis of the Lazarus Project, which seems to be a "free Delphi"... i.e. a GUI for producing Linux applications. (I only say "may" because I haven't tried it. It looks promising.) And the source-code could probably be re-compiled in the Windows Lazarus environment with few (if any) changes, so you can sell to two markets for only one creative effort.
If you liked Delphi for producing Windows applications, and now you want to program for Linux, and you are not afraid of learning something new and different, i.e. Java, then you might want to consider NetBeans. It is considerably more "mainstream" than any Pascal based program development tool I am aware of for Linux. I don't think the change to Java will be a big deal for anyone who could work in Delphi. I've done just a little playing with Netbeans, but am very happy so far. I'm using it under Ubuntu.
(This note added December 2008) Well... I'm using Linux quite a bit now... Ubuntu... and I found a copy of Kylix on eBay. Can't get it to install, though. Sigh. Maybe Java via Netbeans is the way to develop applications for Linux? Or Lazarus? (Open source "Delphi-clone for Linux". I like the FreePascal it is built upon. Haven't tried Lazarus itself.) I fear Kylix may be dead. A great pity. If people are using it happily under Ubuntu, I'd be delighted to hear from them. I found the install issues beyond me.
I will be working through the tutorials on this site, doing FPC versions of them for you because I like this open source product so much.
I have used part of the FPC system on a Ubuntu (ver 7.04) Linux box. I am very new to Linux, and have (so far) only managed to get the command line version of the compiler working... but that DOES work (for quick "Hello World" tests). I hope to get the IDE working in due course. From the FPC forum, it seems others have got it to work.
Borland Turbo Pascal: Traditionally, we used Borland's Turbo Pascal as the industrial strength, de facto "standard" Pascal. You can obtain a free copy of the powerful version 5.5, but it does come from "pre-Windows" days, and is less "Windows friendly"... although it, and the applications it produces, will run, in MS-DOS windows. I have prepared a separate page about installing Borland's Pascal, (with a first project, to test the installation). That is written primarily for XP users, but it will work... probably better... on earlier Windows, too.
Pascalite: Pascalite compiler: While less widely supported than the other two, less "powerful", this one has some special strengths arising from the fact that there is a microcontroller available which is designed to run Pascalite code, and Pascalite is equipped with special commands to access the microcontroller's inputs and outputs, which include ADCs and counters.
Recommendations: If you have not done much programming, or much Pascal programming before now, perhaps you should start with FPC Pascal, or Pascalite, and move on to the Borland product should your needs require it. FPC Pascal and Pascalite work more easily than the Borland product (legacy from MS-DOS days) under Windows, and are easily un-installed if you grow beyond it's strengths. FPC seems more "alive" at 10/08 than the Pascalite. For a microcontroller development package, I'd "bite the bullet", learn C, in order to use an Arduino. (If you've half learnt Pascal, you have what it takes to learn as much C as you need to run the Arduino. It is not a big transition.)
This site offers you a sequence of lessons which should help you master Pascal programming. You don't need to pay for a compiler: the tutorials can be followed with any of the free Pascal compilers. All run on Windows, from Win98 to XP, and maybe Vista. FPC can also be used on Linux boxes ('Ray!) and Macs. Thus, the material should be of general use. Feel free to use the tutorials in programming courses, but a credit of the source would be appreciated.
You can follow two threads through the tutorials. One is for users of Free Pascal, aka FPC. That thread will also help users of Borland's Turbo Pascal. The other thread is written with users of the Pascalite in mind.
If you follow the Pascalite thread through these tutorials, you do not have to have the Pascalite hardware to do most things in these programming tutorials. IF YOU DO have the hardware, especially if you have just obtained it, PLEASE have a look at my Using the Pascalite Hardware It has details of how to access various features of the splendid Pascalite.
Pascalite is two things: A Pascal software programming package which you can download for free, and an inexpensive microcontroller, which is remarkably capable. The software includes not only the compiler, but also a splendid integrated working environment including editor, debugging tools and simulation of the Pascalite hardware. The download was only 482kb in late 2002, but don't be fooled into thinking that it can't be very capable in so "few" bytes. It simply wasn't written at Microsoft.
Click here to visit the Control Plus site, which gives away the software and sells the hardware. By the way, this site and the tutorials were created without payment from or affiliation to Control Plus. I just thought the product deserved publicity, and liked the fact that I could teach Pascal without requiring expenditure by my pupils. I have also done an overview of the Pascalite for you.The exercises work exactly as presented if you are using Pascalite. However, it (mostly) obeys the rules of any good Pascal and they will need little modification to run in other dialects of Pascal.
Delphi is a much under-rated programming tool for Windows, and it has, hurrah, become reasonably available to hobbyists again. See my Delphi Tutorials site for more information on these matters.
I dislike 'fancy' websites where there's more medium than message.... especially if that means I have to wait while multiple little items get downloaded. For a pretty picture, I can go to an art gallery. (Of course an attractive site with content deserves praise... as long as that pretty face doesn't cost download time.) In any case....
I am trying to present this material in a format which makes it easy for you to USE it. There are two aspects to that: The way it is split up and the way it is posted.
I have tried to split it up into 'bite-sized' pieces and to indicate which pieces are basic and of general importance, and which address more specific issues which may also be more complex, or require prior understanding of other issues. In other words, I try to show you how to walk before running. The 'Level 1' tutorials cover the basics. If you have no experience, start with the level one tutorials. If you decide to jump in at a more advanced level, and things are not clear, it might be an idea to skim the level one topics if only to learn about my way of expressing the concepts.
They will be opened in new windows, so use your tabs (Opera, Firefox), or just close their windows (IE) to get back here.
(Please do not ask me to list your page here unless your page already has a link to my page, and your page has been up for at least two years. (And I can confirm that with the WayBack Machine.))
Before you have looked very far on the internet for help with Pascal, you should encounter Timo Salmi. Almost everything that anyone ever wanted to know is already on the web in Professor Salmi's superb FAQs.... if you can find them!!! These wonderful resources are worth seeking out. 1/2009, they were available here. Fetch tsfaqp50.zip, unzip it, look in TSFAQP.IDX for the FAQ's table of contents.
(Those FAQs seem to move around! There were at ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip, and then at ftp://garbo.uwasa.fi/pc/ts/tsfaqp36.zip. Hiding again? Try searching with Google for "timo salmi pascal faqs". I'm thankful they weren't written by Joe Smith!
Page tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org