Contents | Prev | Next
3.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:
- ipc - The compiler displays a brief help screen showing the proper syntax.
- ipc ? - The compiler displays a more detailed help screen listing all the
options you can use.
- ipc [options] filename - The compiler attempts to compile the file specified
by filename, using the options specified. NOTE: filename can include
path information, and [x] indicates that x is optional.
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
Contents | Prev | Next