#pragma CREATE_ASM_LISTING: Create an Assembler Include File Listing

Scope

Until the next CREATE_ASM_LISTING pragma

Syntax

#pragma CREATE_ASM_LISTING (ON|OFF)

Synonym

None

Arguments

ON: All following defines or objects are generated

OFF: All following defines or objects are not generated

Default

OFF

Description

This pragma determines if the following defines or objects are printed into the assembler include file.

A new file is generated only when the -La compiler option is specified together with a header file containing #pragma CREATE_ASM_LISTING ON.

Listing: Example


#pragma CREATE_ASM_LISTING ON
extern int i; /* i is accessible from the asm code */

#pragma CREATE_ASM_LISTING OFF

extern int j; /* j is only accessible from the C code */
See also

Generating Assembler Include Files (-La Compiler Option)