Datasheet
C and C++ Compilers
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-11
Specifying keyboard input
Use minus – as the source filename to instruct the compiler to take input from the
keyboard. Input is terminated by entering
Ctrl-D
on UNIX environments or
Ctrl-Z
on
MS Windows environments.
An assembly listing for the keyboard input is sent to the output stream after input has
been terminated if both of the following are true:
• no output file is specified
• no preprocessor-only option is specified, for example
-E
.
If you specify an output file with the
-o
option, an object file is written. If you specify
the
-E
option, the preprocessor output is sent to the output stream.
Getting help and version information
Use the
-help
option to view a summary of the main compiler command-line options.
Use the
-vsn
option to display the version string for the compiler.
Redirecting errors
Use the
-errors
filename
option to redirect compiler error output to a file. Errors on the
command line are not redirected.