19-05-2012, 01:44 PM
Porting and Optimizing Programs
Reference - Parallel Programming Models.pdf (Size: 720.38 KB / Downloads: 29)
Introduction
This chapter provides guidelines for porting and optimizing performance tuning. It
describes various optimization methods supported by the TriMedia Compilation System as
well as techniques for exploiting the Þne-grain parallelism of the TriMedia architecture.
Porting Considerations
You should use ANSI Standard C when developing applications for TriMedia processors.
The implementation of the TriMedia C compiler is based on the following standards:
American National Standard for Programming Languages - C
, ANS X3.159-1989 and
ISO/IEC 9899:1990
Amendment 1 (1994) to
ISO/IEC 9899:1990
Technical Corrigendum 1 (1994) to
ISO/IEC 9899:1990
Additionally, the compiler supports the concept of
restricted pointers
, as proposed by the
Numerical C Extensions Group
in X3J11/95-049, WG 14/N448
This document is available from ftp:
1 of ÒProgramming Languages and File FormatsÓ
discusses compatibility issues, C
language extensions, and implementation-dependent features.
Library and System-Calls Support
The language implementation supports the standard C library, as deÞned in the ANSI/ISO
C Standard. No other libraries are supported. For example, programs using X11 libraries
or Sun-speciÞc libraries do not compile with the TriMedia Compilation System.
The following library and system calls are implemented as traps by
uses the corresponding library and system call routine on the host processor to
simulate the routine.