没有合适的资源?快使用搜索试试~ 我知道了~
首页TMS320C6000 C语言编译器用户指南
TMS320C6000 C语言编译器用户指南
需积分: 9 79 浏览量
更新于2023-03-03
评论 1
收藏 1.48MB PDF 举报
TMS320C6000 Optimizing C Compiler User’s Guide This user’s guide discusses the characteristics of the C compiler. It assumes that you already know how to write C programs.
资源详情
资源评论
资源推荐

TMS320C6000
Optimizing C Compiler
User’s Guide
Literature Number: SPRU187E
February 1999
Printed on Recycled Paper

IMPORTANT NOTICE
Texas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinue
any product or service without notice, and advise customers to obtain the latest version of relevant information
to verify, before placing orders, that information being relied on is current and complete. All products are sold
subject to the terms and conditions of sale supplied at the time of order acknowledgement, including those
pertaining to warranty, patent infringement, and limitation of liability.
TI warrants performance of its semiconductor products to the specifications applicable at the time of sale in
accordance with TI’s standard warranty. Testing and other quality control techniques are utilized to the extent
TI deems necessary to support this warranty. Specific testing of all parameters of each device is not necessarily
performed, except those mandated by government requirements.
CERTAIN APPLICATIONS USING SEMICONDUCTOR PRODUCTS MAY INVOLVE POTENTIAL RISKS OF
DEATH, PERSONAL INJURY, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE (“CRITICAL
APPLICATIONS”). TI SEMICONDUCTOR PRODUCTS ARE NOT DESIGNED, AUTHORIZED, OR
WARRANTED TO BE SUITABLE FOR USE IN LIFE-SUPPORT DEVICES OR SYSTEMS OR OTHER
CRITICAL APPLICATIONS. INCLUSION OF TI PRODUCTS IN SUCH APPLICATIONS IS UNDERSTOOD TO
BE FULLY AT THE CUSTOMER’S RISK.
In order to minimize risks associated with the customer’s applications, adequate design and operating
safeguards must be provided by the customer to minimize inherent or procedural hazards.
TI assumes no liability for applications assistance or customer product design. TI does not warrant or represent
that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other
intellectual property right of TI covering or relating to any combination, machine, or process in which such
semiconductor products or services might be or are used. TI’s publication of information regarding any third
party’s products or services does not constitute TI’s approval, warranty or endorsement thereof.
Copyright 1999, Texas Instruments Incorporated

iii
Contents
Preface
Read This First
About This Manual
The
TMS320C6000 Optimizing C Compiler User’s Guide
explains how to use
these compiler tools:
- Compiler
- Assembly optimizer
- Standalone simulator
- Library-build utility
The TMS320C6000 C compiler accepts American National Standards Insti-
tute (ANSI) standard C source code and produces assembly language source
code for the TMS320C6000 device. This user’s guide discusses the character-
istics of the C compiler. It assumes that you already know how to write C
programs.
The C Programming Language
(second edition), by Brian W.
Kernighan and Dennis M. Ritchie, describes C based on the ANSI C standard.
You can use the Kernighan and Ritchie (hereafter referred to as K&R) book as
a supplement to this manual.
Before you use the information about the C compiler in this user’s guide, you
should install the C compiler tools.

Notational Conventions
iv
Notational Conventions
This document uses the following conventions:
- Program listings, program examples, and interactive displays are shown
in a special typeface. Examples use a bold version of the
special typeface for emphasis; interactive displays use a bold version
of the special typeface to distinguish commands that you enter from items
that the system displays (such as prompts, command output, error mes-
sages, etc.).
Here is a sample of C code:
#include <stdio.h>
main()
{
printf(”hello, world\n”);
}
-
In syntax descriptions, the instruction, command, or directive is in a bold-
face typeface and parameters are in
italics
. Portions of a syntax that are
in bold must be entered as shown; portions of a syntax that are in italics
describe the type of information that should be entered. Syntax that is
entered on a command line is centered in a bounded box:
cl6x [
options
]
[
filenames
]
[
–z
[
link_options
]
[
object files
]]
Syntax used in a text file is left justified in a bounded box:
inline
return-type function-name
(
parameter declarations
) {
function
}
- Square brackets ( [ and ] ) identify an optional parameter. If you use an
optional parameter, you specify the information within the brackets; you
do not enter the brackets themselves. This is an example of a command
that has an optional parameter:
load6x [
options
]
filename.out
The load6x command has two parameters. The first parameter,
options
, is
optional. The second parameter,
filename.out
, is required.
- Braces ( { and } ) indicate that you must choose one of the parameters
within the braces; you do not enter the braces themselves. This is an ex-
ample of a command with braces that are not included in the actual syntax
but indicate that you must specify either the –c or –cr option:
lnk6x {–c | –cr}
filenames
[–o
name.out
] –l
libraryname

Related Documentation From Texas Instruments
v
Read This First
- The TMS320C6200 core is referred to as TMS320C62x and ’C62x. . The
TMS320C6700 core is referred to as TMS32067x and ’C67x.
TMS320C6000 and ’C6000 can refer to either ’C62x or ’C67x.
Related Documentation From Texas Instruments
The following books describe the TMS320C6000 and related support tools. To
obtain any of these TI documents, call the Texas Instruments Literature
Response Center at (800) 477–8924. When ordering, identify the book by its
title and literature number (located on the title page):
TMS320C6000 Assembly Language Tools User’s Guide
(literature number
SPRU186) describes the assembly language tools (assembler, linker,
and other tools used to develop assembly language code), assembler
directives, macros, common object file format, and symbolic debugging
directives for the ’C6000 generation of devices.
TMS320C6x C Source Debugger User’s Guide
(literature number
SPRU188) tells you how to invoke the ’C6x simulator and emulator
versions of the C source debugger interface. This book discusses
various aspects of the debugger, including command entry, code
execution, data management, breakpoints, profiling, and analysis.
TMS320C6000 Programmer’s Guide
(literature number SPRU198)
describes ways to optimize C and assembly code for the TMS320C6000
DSPs and includes application program examples.
TMS320C6000 CPU and Instruction Set Reference Guide
(literature
number SPRU189) describes the ’C6000 CPU architecture, instruction
set, pipeline, and interrupts for these digital signal processors.
TMS320C6000 Peripherals Reference Guide
(literature number SPRU190)
describes common peripherals available on the TMS320C6000 digital
signal processors. This book includes information on the internal data
and program memories, the external memory interface (EMIF), the host
port interface (HPI), multichannel buffered serial ports (McBSPs), direct
memory access (DMA), enhanced DMA (EDMA), expansion bus, clock-
ing and phase-locked loop (PLL), and the power-down modes.
TMS320C6000 Technical Brief
(literature number SPRU197) gives an
introduction to the ’C6000 platform of digital signal processors, develop-
ment tools, and third-party support.
Notational Conventions / Related Documentation From Texas Instruments
剩余386页未读,继续阅读















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0