ERC32 Ada Technical Summary: For mission-critical applications using the ERC32 spacecraft computer | ||
---|---|---|
Prev | Next |
This chapter summarizes how to use the cross compiler. The management of compilation, cross-development and debugging are described briefly.
ERC32 Ada uses the UNIX shell command line interface. The compiler, the tools and the libraries are systematically named, and installed in a formal directory structure. This permits different versions of ERC32 Ada to be installed and used at the same time, without confusion over which files belong to which version. For the compiler, the convention is this. The native compiler is called gcc, and is located in the directory /usr/bin, or in /usr/local/bin. Cross compilers have a different name, and are installed under /opt/erc32-ada-1.7/, for example, with the executable images in the directory /opt/erc32-ada-1.7/bin/.
The main program of the ERC32 Ada compiler is called erc-coff-gcc and is located in the directory /opt/erc32-ada-1.7/bin/. Depending on which source files and command line options are given, the main program will call the Ada compiler, C compiler, assembler, or linker.
The other executable images are named in the same way. For example, the native assembler is called as; the cross assembler is called erc-coff-as.