
Altera Corporation 9.1 1–1
November 2009
1. Introduction to the
C2H Compiler
The Nios
®
II C-to-Hardware Acceleration (C2H) Compiler is a tool that
allows you to create custom hardware accelerators directly from ANSI C
source code. A hardware accelerator is a block of logic that implements a
C function in hardware, which often improves the execution performance
by an order of magnitude. Using the C2H Compiler, you can develop and
debug an algorithm in C targeting an Altera
®
Nios II processor, and then
quickly convert the C code to a hardware accelerator implemented in a
field programmable gate array (FPGA).
The C2H Compiler improves the performance of Nios II programs by
implementing specific C functions as hardware accelerators. The
C2H Compiler is not designed to create arbitrary hardware systems from
C code. Rather, the C2H Compiler is a tool for generating a hardware
accelerator module, functionally identical to the original C function, that
offloads and enhances the performance of the Nios II processor.
User Guide
Overview
This user guide comprises the following chapters:
■ Chapter 1, Introduction to the C2H Compiler provides a detailed
background on the C2H Compiler and the concepts required to use
it.
■ Chapter 2, Getting Started Tutorial provides hands-on instructions
that teach you the first steps to begin using the C2H Compiler.
■ Chapter 3, C-to-Hardware Mapping Reference provides reference on
how the C2H Compiler translates C constructs to hardware
structures.
■ Chapter 4, Understanding the C2H View helps you use the C2H
view to get performance information and to control the compilation
of accelerators.
■ Chapter 5, Accelerating Code Using the Nios II Software Build Tools
Command Line explains how to use the C2H Compiler with the
Nios
®
II software build tools.
■ Chapter 6, Pragma Reference summarizes usage of all C2H #pragma
directives.
■ Chapter 7, ANSI C Compliance and Restrictions documents all
sections of the ANSI C specification that the C2H Compiler does not
support.
Kommentare zu diesen Handbüchern