The following environment variables are used in the Mjølner System on all platforms.
~betais expanded in BETA fragment properties. I.e. it should be set to the path indicating where you installed the Mjølner System. It is used by many tools in the Mjølner System.
TMPDIRto the name of a directory, prior to compilation, will cause the link-directives to place temporary files in this directory.
TMPDIRis not set, the environment variables
TEMPare searched. If none of these are set, the directory
For most uses, the defaults registered in the registry by the installer are sufficient.
You can make Windows NT set the BETALIB and Path environment variables automatically each time you log in via the System tool in the Control Panel.
You can make Windows 95/98/2000 set the BETALIB and Path
environment variables automatically each time you log in by setting it
$(CC)can be used in
BUILDproperty commands (see [MIA 90-02]) and Makefiles invoked using the
LD_LIBRARY_PATHis especially important: Most BETA programs are linked using shared object files. This means, that a part of the linking process is postponed until runtime, and in order for this to work, the runtime loader must be able to locate the shared object files generated by the compiler. The compiler will output a suggestion for setting
LD_LIBRARY_PATHafter each compilation, that uses shared object files. In this case,
LD_LIBRARY_PATHmust be set before attempting to run the program. Otherwise you will get a loadtime error like
793:./foo: rld: Fatal Error: <INX>cannot map soname</INX> 'foo1..so' using any of the filenames /usr/lib/foo1..so:/lib/foo1..so: /lib/cmplrs/cc/foo1..so: /usr/lib/cmplrs/cc/foo1..so: -- either the file does not exist or the file is not mappable (with reason indicated in previous msg)
The following MPW environment variables are used by the Mjølner System.
Except for the
BETART variables, you should probably not change these
Output from the garbage collector of the BETA compiler will then be directed to a special window. The following command will turn off the garbage collector output:
Set <INX>Verbose</INX> 1 Export Verbose
Unset Verbose Export Verbose
Time usage of the compiler and the linker will be printed in the compiler output window. The following command will turn off the time usage output:
Set <INX>Time</INX> 1 Export Time
Unset Time Export Time
Example of setting for an application:
set BETART "InfoIOA:IOA=512:InfoFile=info.dump" <BR>export BETART
For applications the BETART environment variable is read from the
resource of type '
STR ' with number
BETART. To change
this resource use a resource editor, e.g.
ResEdit. Specify the value as
Then specify the number and name using the Resource Info dialog.
By using the
items in the
BetaLinkType is changed to '
MPS ' and '
If you want to use the very popular GNU Emacs text editor as an alternative to the structure editor included in the Mjølner System Integrated Tool ([MIA 99-39], [MIA 99-40], [MIA 99-34]), you may benefit from the beta-mode for Emacs located in the file
By putting the following lines of Emacs-Lisp code into your
.emacsfile, you can make Emacs automagically recognize your BETA source code file if they have the suffix
.bet(textual BETA files).
(setq betalib (getenv "BETALIB")) (if (not betalib) (setq betalib "/usr/local/lib/beta")) ;; or if you are on a PC: ;; (if (not betalib) (setq betalib "c:\\beta")) (setq load-path (append load-path (list (format "%s/emacs" betalib)))) (autoload 'beta-mode "beta-mode") (setq auto-mode-alist (append (list (cons "\\.bet$" 'beta-mode)) auto-mode-alist))
When in beta-mode, you can get to know more about beta-mode by
M-x describe-mode. Also you may want to
beta-mode.el from within Emacs for improved
performance. The directory
BETALIB/emacs also contains
various other contributions for using Emacs to edit BETA programs. For
instance, the file
beta-hilit19.el contains a setup for
syntactic colouring of your BETA programs when using Emacs version 19
Emacs is available for UNIX, PC and Macintosh.
(defun mybeta () "Adds BETA menu" (interactive) (load "beta-menu19" t t) ) (setq beta-mode-hook 'mybeta)
beta-mode-hook. Here is a larger example:
(defun mybeta () "Make the following local bindings in beta-mode: C-xC-rj calls beta-comment-justify C-xC-rC-r calls beta-comment-justify-region C-xC-rC-c calls beta-convert-region-to-comment C-xC-ru calls beta-remove-comment C-xC-ri calls indent-buffer. Also adds BETA menu and beta-hilit19. " (interactive) (local-set-key "\C-x\C-rj" 'beta-comment-justify) (local-set-key "\C-x\C-r\C-r" 'beta-comment-justify-region) (local-set-key "\C-x\C-r\C-c" 'beta-convert-region-to-comment) (local-set-key "\C-x\C-ru" 'beta-remove-comment) (local-set-key "\C-x\C-ri" 'indent-buffer) (load "beta-menu19" t t) (load "beta-hilit19" t t) ) (setq beta-mode-hook 'mybeta)
The latest version of these manual pages can always be found on the Internet at the URL
Various other information about BETA and The Mjølner System can be found atMjølner Informatics Homepage:
The BETA Language Homepage:
You may find introductory material in the distribution in
The USENET newsgroup
for discussions about the BETA language and the programs and systems
written in or supporting BETA. Discussions concerning object-oriented
programming principles based on the concepts known from BETA will also
take place in
possibly cross-posted to
The BETA language Frequently Asked Questions
will be posted to
and the most frequently asked questions from
will be included in the
subsequent versions of this FAQ
The following e-mail address can be used to send error reports and comments:
This is not a hot-line support; but all e-mails will be answered as fast as possible. Mjølner Informatics can offer a contract for hot-line support.
For errors specific to either the
mjolner tool or the
beta compiler, the following two e-mail addresses may be
BETA compiler specific errors:
The following classification characters can be used to indicate which priority an error should have in the maintenance process.
An error report should include
$BETALIB/bin, which invokes the
betacompiler and the
mjolnertool can be configured to cause automatic collecting of the necessary information and sending of it to Mjølner Informatics in case of serious bugs. This is done by setting the
BETAREPORTenvironment variable to the value "
Errors in manuals can be reported using the on-line Manual Error Reporting Facility.
setenv BETAREPORT yes
Apple and Macintosh are registered trademarks of Apple Computer, Inc.
MPW is a trademark of Apple Computer, Inc.
UNIX is a registered trademark of AT&T.
Motorola is a trademark of Motorola, Inc.
|Installation Guide and Platform Specific Issues||© 1999-2002 Mjølner Informatics||
[Modified: Friday October 27th 2000 at 14:56]