Contents | Prev | Next

5.1.1 Using the command-line compiler

The Irie Pascal command-line Pascal compiler translates Pascal source programs into Irie Virtual Machine executables (.IVM executables), or (.EXE executables).

Command-line Compiler (ipc) Syntax

The syntax for the command-line compiler is as follow:

For example to compile the sample program hello.pas enter

   ipc hello

or

   ipc hello.pas

(assuming of course that hello.pas is in the current directory).

The compiler will generate a file called hello.ivm which contains an IVM executable. You can run it by entering

   ivm hello

or

   ivm hello.ivm

NOTE: If you do not specify a path for the executable (as in the example above) the interpreter will first look in the current directory and if not found the interpreter will search the path.

Contents | Prev | Next