Hendrik Boom wrote:
> This is from an ALgol 68 program that does nothing but add two numbers
> and throw them away. Layout stinks. But does it look remotely
> reasonable?
>
> H2(
> ){
> bits32 H4;
> H4= add(8::bits32
> ,7::bits32
> );return;
> }
>
>
> How do I indicate that this is the whole main program? I.e., how do I
> tell it where to start executing?
>
You can add 'export H as "main";' before the function declaration.
compile your code with:
qc-- -globals your_cmm_file
It will generate an 'a.out' executable (assuming you are on x86).
AFAIK, the default entry function is "main" like C.
Ning
_______________________________________________
Cminusminus mailing list
[email protected]
https://cminusminus.org/mailman/listinfo/cminusminus