Bare-metal compiler, Bare-metal compiler -1 – Altera SoC Embedded Design Suite User Manual
Page 198

Bare-Metal Compiler
10
2014.12.15
ug-1137
The bare-metal compiler that is shipped with the SoC EDS is the Mentor Graphics Sourcery
™
CodeBench
Lite Edition, version 4.9.1. For more information on the Sourcery CodeBench Lite Edition and for
downloading the latest version of the tools, refer to the Mentor Graphics website (www.mentor.com).
The compiler is a GCC-based arm-altera-eabi port. It targets the ARM processor, it assumes bare-metal
operation, and it uses the standard ARM embedded-application binary interface (EABI) conventions.
The bare-metal compiler is installed as part of the SoC EDS installation in the following folder:
installation directory>/host_tools/mentor/gnu/arm/baremetal
.
The Embedded Command Shell, opened by running the script from the SoC EDS installation folder, sets
the correct environment PATH variables for the bare-metal compilation tools to be invoked. After
starting the shell, commands like arm-altera-eabi-gcc can be invoked directly. When the Eclipse environ‐
ment is started from the embedded command shell, it inherits the environment settings, and it can call
these compilation tools directly.
Alternatively, the full path to the compilation tools can be used:
mentor/gnu/arm/baremetal/bin
.
The bare-metal compiler comes with full documentation, located at
tools/mentor/gnu/arm/baremetal/share/doc/sourceryg++-arm-altera-eabi
. The documentation is offered in four
different formats to accommodate various user preferences:
• Html files
• Info files
• Man pages
• PDF files
Among the provided documents are:
• Compiler manual
• Assembler manual
• Linker manual
• Binutils manual
• GDB manual
• Getting Started Guide
• Libraries Manual
©
2014 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are
trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as
trademarks or service marks are the property of their respective holders as described at
www.altera.com/common/legal.html
. Altera warrants performance
of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any
products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,
product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
www.altera.com
101 Innovation Drive, San Jose, CA 95134