Chapter 4. Questions and Answers

Here is a list of questions and answers.

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/xgc/ to that directory. On Microsoft Windows you must install in \OPT\XGC\.

Q: Can I install GCC-1750 on Microsoft Windows drive D:?

A: No. You must install GCC-1750 on drive C.

Q: How do I un-install GCC-1750

A: On GNU/Linux, simply delete "m1750-coff*" files under directory /opt/xgc/.

# find /opt/xgc/ -name "m1750-coff*" -exec rm -rf "{}" ";"

On Solaris, you should use the pkgrm command:

# pkgrm XGCm1750
Q: Can I do mixed language programming?

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

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: GCC-1750 requires no special editing features and will work with your favorite text editor. If you use the GNU 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. This is shipped with most UNIX systems, and is available for Microsoft Windows too.

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.