.file

Specifies the source-code file; enables correlation of generated assembly code and source code.

  .file "filename"
  
Parameter

filename

Name of source-code file, in double quotes.

Remarks

This directive is appropriate if you must explicitly provide a filename to the assembler as debugging information. For more information about debugging, refer to the Debugging Directives.

Example

The following list shows how to use the .file directive for your own DWARF code.

Listing: DWARF Code Example
.file "MyFile.c"

.text

.function "MyFunction",start,end-start

start:

.line 1

lwz r3, 0(r3)

.line 2

blr

end: