Skip to main content

IAR Embedded Workbench for RISC-V 3.40

-l

In this section:
Syntax
-l[a][d][e][m][o][x][N][H] {filename|directory}
Parameters

a

Assembled lines only.

d

The LSTOUT directive controls if lines are written to the list file or not. Using -ld turns the start value for this to off.

e

No macro expansions.

m

Macro definitions.

o

Multiline code.

x

Includes cross-references.

N

Do not include diagnostics.

H

Includes header file source lines.

filename

The output is stored in the specified file.

directory

The output is stored in a file (filename extension i) which is stored in the specified directory.

For information about specifying a filename or directory, see Specifying parameters.

Description

By default, the assembler does not generate a listing. Use this option to generate a listing to a file.

Example

To generate a listing to the file list.lst, use:

iasm sourcefile -l list 

Caution

To set related options, select:

Project>Options>Assembler >List