[Next] [Previous] [Up] [Top]

7 Non-Cecil Front Ends

7.2 Using the Modula-3 Front End

The directory ${VORTEX_HOME}/M3 contains M3 sources to be compiled using Melvin, precompiled interfaces to the two standard M3 libraries (which may not be usable by you if you have built your own Melvin front-end, due to typeID generation vagaries) in the stdlib subdirectory, and an example program in the example subdirectory. To compile the example program:

In general, to compile an M3 application, first add m3_option("-Melvin") to its src/m3makefile, and then follow the above recipe, substituting the appropriate program name in the appropriate steps. If the application has its own libraries, then these will need either to be compiled by Melvin (using the -Melvin option to compile the library and then adding the appropriate search paths to find the lib's lib*.mc file when compiling the application; note that this has not yet been tried (successfully)), or interfaces to the library will need to be compiled (described below) and the library's precompiled executable will need to be added to the Makefile's link line. Ideally, there'd be a nice way from within Vortex to specify additional language- or program-specific libraries and files to include along with the Vortex-generated ones, but I don't think you can now.

To build a Vortex library interface file to use in conjunction with linking against a pre-compiled library (e.g. libm3):


How to Use the Vortex Compiler and Environments - 25 MARCH 1997
[Next] [Previous] [Up] [Top]

Generated with Harlequin WebMaker