Keil™, An ARM® Company

RealView Compiler User's Guide

Specifying keyboard input

2.1.6. Specifying keyboard input

Use minus () as the source filename to instruct the compiler to take input from the keyboard. 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 the console.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0375A