Keil Logo

Compiler exit status codes and termination messages

5.5 Compiler exit status codes and termination messages

If the compiler detects any warnings or errors during compilation, it writes the messages to stderr.

At the end of the messages, a summary message is displayed that gives the total number of each type of message of the form:
filename: n warnings, n errors
where n indicates the number of warnings or errors detected.

Note

Remarks are not displayed by default. To display remarks, use the --remarks compiler option. No summary message is displayed if only remark messages are generated.
The signals SIGINT (caused by a user interrupt, like ^C) and SIGTERM (caused by a UNIX kill command) are trapped by the compiler and cause abnormal termination.
On completion, the compiler returns a value greater than zero if an error is detected. If no error is detected, a value of zero is returned.
Non-ConfidentialPDF file icon PDF versionARM DUI0375H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.