Keil Logo

EJECT Compiler Directive

Abbreviation

EJ

Arguments

None.

Default

None.

µVision

This directive may not be specified on the command line.

Description

The EJECT directive (abbreviated with EJ) inserts a form feed character into the listing file. This directive must be used in the source file within a #pragma statement.

When compiled, the generated listing file will place the main function on one page and the function_a function on a different page.

Example
#pragma EJECT
void main (void)
{
}


#pragma EJECT
int function_a (void)
{
}
  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.