EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Software Guide

Texas Instruments TI-89
334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #54 background imageLoading...
Page #54 background image
42
Section 2: Compiler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
arguments. Other flags take no arguments. Flags may be grouped together
following a single hyphen; however, any flag that accepts an optional argument
must be the last flag in a group. The TI-89 / TI-92 Plus SDK includes example
invocations of the compiler. It is highly recommended that you only use the flags
as shown in those files.
The following command compiles the C source from the file demo_in.c and
places the generated 68000 assembly code into demo_out.s:
com68 -l -O demo_in.c demo_out.s
The two flags listed on the command line cause the C source to be listed in the
output file as comments, and full optimization to be applied to the program,
respectively.
The command can also be specified as follows without changing the behavior of
the compiler:
com68 demo_in.c -lO demo_out.s
These two command lines demonstrate both how flags can be grouped together
using a single hyphen (
-
) and that they can appear anywhere on the command
line.
When two or more contradictory flags are specified on the command line, the last
flag entered determines the behavior. For example, if the
-Op0
flag (turn off
post-code-generation optimizations) is followed by the
-Op1
flag (turn on
post-code-generation optimizations), the
-Op0
flag is ignored. This feature may
be useful in some cases, for example, you may wish to override a flag contained
in a file included with the
-i
flag.
2.3.1. Usage
The following is a summary of the command line usage information for the
compiler (see
-u
flag):
usage:
com68 [-fCcas#] [-CEPQTlq#su] [-Idir] [-D
name
[=
def
]]
[-U
name
] [-Xabcdef#ilpr#uw#AC#ILNRSWs#E#2]
[-ZabcdefilpqruwAILNRSsW2] [-O[a#c#f#i#l#m#p#r#s#t#x#zA]]
[-i
cmd_file
] [
infile
[
outfile
]]
2.3.2. Default Behavior
If no command line flags are specified, the compiler defaults to the following
settings:
68000 default settings:
com68 -fc3 -Oa2c0f0i1l1m1p1r2s2x0

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals