


It does not even allow us to see the output. It is the simplest and the smallest Pascal program, but it does nothing. How To Stop The Smallest Pascal Program From Closing? So this software will be only 45 kilobytes, and we can even distribute it to others.

Again run it and again check this file in the Win32 Release folder. If we go to build instead of debug, we change build-settings to release. How To Change The Delphi Output Settings From Debugging To Release? Still, it’s a large file because we have some debugging information inside it. It is small software with 248 kilobytes, and this is the only code in it. Here is our output file of 248 kilobytes. If you execute it, you see it just displays for a fraction of a second, and then it closes immediately. What Will The Smallest Pascal Program Do? So this “BEGIN” with this “END” act like a main loop in Pascal. It starts from BEGIN and ends with this END and a full-stop, not a semicolon. Just like we have a MAIN loop in C, Java, and other languages, we have a main Loop in Pascal. You can use a lowercase “a” to make it even smaller. We cannot use space or numeric characters. “A” is the possible shortest name of a program. Three out of these four words are “Reserved Words.” That is, PROGRAM, BEGIN and END. Browse for the output folder and save this project as A. Now we have only three lines.įor the project’s name, we can save this project as A. Let’s press Control+D to format the source code. It will create this boilerplate code, but we don’t need all this code for the smallest Pascal program.
