Nios® V Processor Software Developer Handbook

ID 743810
Date 5/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.11.8. Eliminate Unneeded Exit Code

The HAL calls the exit() function at system shutdown to provide a clean exit from the program. exit() flushes all of the C library internal I/O buffers and calls any functions registered with atexit(). In particular, exit() is called on return from main(). Two HAL options allow you to minimize or eliminate this exit code.