| |||
| Home > Getting started with the ARM Compiler > Using command-line options > Specifying stdin input | |||
Use minus (-) as the source filename to
instruct the compiler to take input from stdin. The
default compiler mode is C.
To terminate input, enter:
Ctrl-Z then Return on
Microsoft Windows systems
Ctrl-D on Red Hat Linux systems.
An assembly listing for the keyboard input is sent to the output stream after input has been terminated if both 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. If you specify
the -o- option, the output is sent to stdout.