Download MegaWave2 User's Guide
Transcript
Contents MegaWave2 User’s Guide Contents 2 Contents 1 Introduction 1.1 What is MegaWave2 . . . . . . . . . . . . . . . . . . . . . . . . . 1.2 Motivations and history . . . . . . . . . . . . . . . . . . . . . . . 1.3 Authors and acknowledgements . . . . . . . . . . . . . . . . . . . 1.4 Main changes between MegaWave2 versions 1.x and versions 2.x 1.5 Contents of the MegaWave2 guides . . . . . . . . . . . . . . . . . 1.6 What you will find in this guide . . . . . . . . . . . . . . . . . . . 1.7 The MegaWave2 philosophy: basic principles . . . . . . . . . . . 1.8 MegaWave2 Macros . . . . . . . . . . . . . . . . . . . . . . . . . 1.9 The MegaWave2 Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4 4 5 5 6 6 7 9 9 2 Installation 2.1 Installation of the system . . . . . . . . . . . . 2.1.1 Upgrading to a new MegaWave2 version 2.1.2 Restoration of the package . . . . . . . . 2.1.3 Directories structure . . . . . . . . . . . 2.1.4 Set up the environment . . . . . . . . . 2.1.5 Make the software ready . . . . . . . . . 2.1.6 No longer registration, but still license . 2.2 Installation for the user . . . . . . . . . . . . . 2.2.1 Set up the environment . . . . . . . . . 2.2.2 Make the directory tree ready . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 11 11 11 12 12 15 16 16 16 17 3 Getting started 3.1 A simple module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Some optimizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 A little more complex extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 19 24 26 4 Module’s header 4.1 Syntax . . . . . . . . . . . . 4.1.1 Name Statement . . 4.1.2 Author Statement . 4.1.3 Function Statement 4.1.4 Labo Statement . . 4.1.5 Group Statement . . 4.1.6 Version Statement . 4.1.7 Usage Statement . . 4.2 Options . . . . . . . . . . . 4.3 Needed arguments . . . . . 4.4 Optional arguments . . . . 4.5 Variable arguments . . . . . 4.6 Unused arguments . . . . . 4.7 Examples of headers . . . . 4.7.1 Use of options . . . 32 32 32 32 33 33 33 33 34 35 36 36 37 38 38 38 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .