Appendix G. Questions and Answers

Here is a list of questions and answers.

Q: How do I change the installation directory?
Q: How do I un-install M1750 Ada?
Q: Can I do mixed language programming?
Q: What is linked into my program over and above my Ada units?
Q: Can I build a program with separate code and data areas?
Q: Which text editor should I use?
Q: Which UNIX shell should I use?
Q: Are programs restart-able?

Q: How do I change the installation directory?

A: On Solaris and Linux you can install the files in a directory of your choice then create a symbolic link from /opt/m1750-ada-1.7/ to that directory.

Q: How do I un-install M1750 Ada?

A: On GNU/Linux, simply delete the directory /opt/m1750-ada-1.7/ and its contents.

On Solaris, you should use the pkgrm command. For example, M1750 Ada Version 1.7 may be removed as follows:

# pkgrm XGCm1ad17

Q: Can I do mixed language programming?

A: Yes. You can write a program using both C and Ada 95 programming languages. In particular you can call the C libraries from code written in Ada.

Q: What is linked into my program over and above my Ada units?

A: When you build a program, the linker will include any run-time system modules that are necessary. The start file art0.o is always necessary. Other files such as object code for predefined Ada library units will be included only if they are referenced.

Q: Can I build a program with separate code and data areas?

A: Yes. Each object code module contains separate sections for instructions, read-only data, variable data and zeroized data. During the linking step, sections are collected together under the direction of the linker script file. The default is to collect each kind of section separately and to generate an executable file with separate code and data.

Q: Which text editor should I use?

A: M1750 Ada requires no special editing features and will work with your favorite text editor. If you use the emacs editor, then you will be able to run the compiler from the editor, and then relate any error messages to the source files. If you have no favorite editor, then we recommend the universal UNIX editor vi.

Q: Which UNIX shell should I use?

A: We recommend the GNU Bash shell. It offers a much better user interface than other shells, and is kept up to date.

Q: Are programs restart-able?

A: Yes. The file art0.S contains code to initialize all variables in the .data section from a copy in read-only memory.