HOW TO COMPILE THE SOURCE CODE in AmigaCOMAL v2.03
{by www.lived.ch, Misel Zivanovic, 2025}

IMPORTANT: Assuming how AmigaCOMAL is installed here:

     DH1:AmigaCOMAL

-----------------------------------------------------------------------------
Example by using CLI {Shell}
{You can of course just drag these files from the COMPILER folder to RAM:}
{And start new CLI process afterwards to compile the source code!}
-----------------------------------------------------------------------------
1. Start CLI process by going to MENU/WORKBENCH and choose Execute Command... 
   Type CLI in prompt field and press ENTER. New process window will open.

2. Copy mybenchmark.sav from PROGRAMS folder in AmigaCOMAL to RAM:
   {type: copy AmigaCOMAL:PROGRAMS/mybenchmark.sav to RAM:} 
   {type: copy AmigaCOMAL:PROGRAMS/mybenchmark.sav.info to RAM:}

3. Copy the content of the COMPILER folder to RAM:
   {type: copy AmigaCOMAL:COMPILER to RAM: all}

   Following will be copied:

    				- Blink
    				- ComalComp
    				- Compile
    				- Compile.info
    				- Runtime.obj

4. If not already so, switch to RAM: as a root source, working directory!
   {type: CD RAM: and hit ENTER}

5. Now enter the following line below to create a standalone COMAL file! 
   {type: compile mybenchmark -p ram: -u AmigaCOMAL:Packages 
   {press ENTER to compile/link}}

This will create a file inside your RAM: with a new icon and 
"mybenchmark" name. File is now executable and can run standalone without
AmigaCOMAL installed {which is great!}


-----------------------------------------------------------------------------
Alternative procedure {instead of 5th step}

1. type: comalcomp mybenchmark -p ram: -u AmigaCOMAL:Packages
2. type: blink runtime.obj mybenchmark.obj to mybenchmark
-----------------------------------------------------------------------------


This will not create an icon like it is the case with the first process!
{In MENU select Window/Show/ All Files}

Both files are the same size and can {also} be executed from CLI by 
typing 'run {NAME}', e.g. run mybenchmark to start the execution!
-----------------------------------------------------------------------------

What isn't so great in both cases?: It's not running any faster!

So my best guess is:
The main purpose of this 'COMPILER' is to make things run as a standalone 
file and not necessary to also speed things up! 

My second guess:
I did or am doing something wrong!? Because everyone is expecting to see some
acceleration when a compiler is involved, why would it here be otherwise?

I'll probably need to investigate further in the future. For now i am 
actually happy that it is possible and it's running!


-----------------------------------------------------------------------------
{by www.lived.ch, Misel Zivanovic, 2025}