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

Page 198

Advertising
background image

Bare-Metal Compiler

10

2014.12.15

ug-1137

Subscribe

Send Feedback

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:

<SoC EDS

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:

<SoC EDS installation directory>/host_tools/

mentor/gnu/arm/baremetal/bin

.

The bare-metal compiler comes with full documentation, located at

<SoC EDS installation directory>/host_

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.

ISO

9001:2008

Registered

www.altera.com

101 Innovation Drive, San Jose, CA 95134

Advertising