CompuServe Messages

Modula-2 Compilers

    20-Jul-89 20:12:52
Fm: Avant-Garde Software 76004,2002
To: Steve Belczyk 75126,515
Steve: I am sure that you will find Benchmark Modula-2 your best choice for many reasons. I have tested the CoRoutines module with a program ported from the IBM-PC at it works exactly as it does in other environments. Here is the definition module for the CoRoutines stuff: DEFINITION MODULE CoRoutines; FROM SYSTEM IMPORT ADDRESS; PROCEDURE NEWPROCESS(proc: PROC; workPtr: ADDRESS; workSize: LONGCARD; VAR p1: ADDRESS); (* proc – procedure workPtr – user allocated workspace ptr workSize – user allocated workspace size p1 – process variable *) PROCEDURE TRANSFER(VAR p1, p2: ADDRESS); (* p1 – current process p2 – process to transfer control to *) END CoRoutines. Very simple module, the actual implementation only takes a few instructions. The more obscure IOTRANSFER() procedure is not available since there is no way to make it practical on the Amiga. >> Leon Frenkel <<