Appendix E. 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/gcc-erc32-1.7/ to that directory. On Microsoft Windows you must install in C:\XGC-Compilers\GCC-ERC32-1.4\.

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

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

Q: How do I un-install GCC-ERC32

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

On Solaris, you should use the pkgrm command:

# pkgrm XGCgcer17

On Windows, select Start, Settings, Control Panel, Add/Remove Programs, GCC-ERC32 and press Remove.

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: Can I use the ERC32 Boot PROM?

A: Yes. The program mkprom may be used to create a compressed image and bootstrap loader suitable for the Boot PROM.

Q: Which text editor should I use?

A: GCC-ERC32 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.