Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 5.3 Description of commands Up: 5 Management under UNIX Prev: 5.1 Installation of the commands Contents


5.2 Guidelines for software development

Two situations are presented below along with some examples:

5.2.1 Development in a personal directory

The following example illustrates the manner in which a MODULEF program is modified to conform to the needs of the user.

First, we need to enter the following command to copy file imagxx.f into the current directory to edit it:

B$ bb e imagxx

To test the compilation and linking commands, we add a Fortran WRITE statement at the beginning of the program, for example:

WRITE(*,*)'HELLO THERE!'
and exit from the editor.

The edited file is compiled by entering the command:

B$ co1 imagxx

To link this program with the rest of the MODULEF library, we enter the command:

B$ elm imagxx

Or, if we would like all the object files in the current directory to be linked as well, the following command is used:

B$ elm *.o -o imagxx

Program imagxx, is executed by typing the name of the executable file:

B$ imagxx

If the edited version of program imagxx was compiled and linked correctly, it should start by printing: HELLO THERE!.

5.2.2 Up-dating the MODULEF library

Let us suppose that we would like to integrate program imagxx, residing in its own directory, into the stable version of MODULEF. If it is the first time a program is integrated, we must specify the following arguments

The first argument is not obligatory, and is specified only if a member with the same name is not already present in the library.

In practice, the compilation is performed by typing:

B$ bb so ppal imagxx

or, if a version of imagxx is already present in library ppal, type:

B$ bb so imagxx

To create the new executable imagxx in MODULEF, we enter:

B$ bb elm imagxx

In general, the few basic commands which we have just encountered usually suffice. It is however useful to know all the commands available. These commands are described in the next section.


Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 5.3 Description of commands Up: 5 Management under UNIX Prev: 5.1 Installation of the commands Contents