Compiler Tutorial

The AMOS Pro compiler provides you with everything you need to create professional programs on the Amiga, We'll show you how it works with a simple tutorial. Our mission, will be to load up the Compiler Shell and compile one of the demos from the AMOS Pro Extras disk. For an encore, we'll take our compiled program and install it onto its very own boot disk.

The AMOS Pro Compiler has been carefully designed to give excellent results on anything from a humble A500+ to the very latest A4000 systems. There's obviously no way we can cater for every possible configuration in the space of a few pages, so we'll keep this tutorial fairy general. When we refer to the AMOS Editor we mean the AMOS Editor you are using - the Easy AMOS one, the AMOS Editor or AMOS Professional Editor.

If you've extra memory or a hard disk you'll often be able to perform many of these activities using a faster, more efficient approach. However, once you've familiarised yourself with the basic techniques, you'll be in the perfect position to read up on these additional features.

Preparing for the tutorial

Before you proceed any further, you'll need to do a little preparation. The AMOS Pro Compiler can't be run straight out of the box. It needs to be installed carefully on your current system.

Now we've created our disks, let's get stuck into our tutorial.

Selecting a program to Compile

In order to keep things simple, we'll perform all operations from the Workbench. Start off by inserting your normal "Workbench" disk into the internal drive and rebooting your Amiga.

Running the Compiler

Compiling the program

Running the compiled program from the Workbench

1.SYS>cd DF0: 1.SYS>cd Df1: 1.Empty>Fractal3_EZ

Creating a boot-disk

In the original AMOS Compiler creating a boot-disk was a real chore, as you had to copy all the library files by hand. So you’ll be pleased to hear that we've automated the procedure completely. Here's the procedure:

The new disk can now be booted straight from the internal drive.

Note: If you want to generate really professional results, it's best to start off your compiled program with a totally clean display. This can be accomplished by selecting the "NODEFAULT" and "WB" options before compilation. Check out the "Compiled Program Setup" menu from Chapter 6.

And that's it! You've just compiled your first program. The next step is to have a bash at compiling your own AMOS programs.

Expect to be amazed!