Next: 5.4 Up-date of the MODULEF library
Up: 5 Management under UNIX
Prev: 5.2 Guidelines for software development
Contents
where
The key is obligatory and indicates the action to be performed on the member of a certain library.
It can be followed by one or two arguments:
In this case, the search is performed in the MODULEF library in which the member is found by default.
In this case, all information necessary to locate the member is given.
bb r readreor
bb r util readre
B$ bb elm imagxxcreates the executable file imagxx and places it in directory
When using the options s, so and d all modifications are memorized in file $MR/$MM/$MV/etc/maj.fo.
The key is obligatory and indicates the action to be performed on one or several complete MODULEF libraries.
It is followed by at the most one argument:
Here, the action is performed on all the MODULEF libraries.
In this case, the action is performed on only the library specified.
bbg co util
B$ bbg elm ppalcreates all the executable files corresponding to the main programs residing in library ppal;
where
Here liblist is either the name of the file containing the list of libraries to be included, or liblist is a variable whose value is sta (name of the MODULEF version). If liblist = sta, the link is performed with the entire MODULEF library;
PROGRAM PPAL | SUBROUTINE A | SUBROUTINE B |
CALL A | WRITE(*,*) 'A' | WRITE(*,*) 'B' |
CALL B | END | END |
END |
To compile these three files and creating the object files ppal.o, a.o and b.o, enter the command:
B$ co1 ppal.f ; co1 a.f ; co1 b.f(the semicolons are equivalent to carriage returns)
The executable file, ppal, is generated from the preceding three files, by typing:
B$ elm -only ppal a b
$MR/$MM/$MV/lib/libutsd.a$MR/$MM/$MV/lib/libutil.a
$MR/$MM/$MV/lib/libutil_apollo.a
and then type:
B$ elm -o ppal *.o -f xx.ldo
B$ elm -o ppal *.oor else
B$ elm -o ppal *.o -f $MVbut in this case a search is performed in all the MODULEF libraries, resulting in an increase in execution time.
where
To read file apnoxx.f residing in library ppal, enter:
voir -r $ms/ppal/apnoxx.fHowever, it is in fact easier to use the bb (described earlier) command:
bb r apnoxxto read this file.
The advantage of the voir command over the bb command is that all files can be visualized and not only the MODULEF source files. For example:
voir $mb/bbvisualizes the shell file $mb/bb.