29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Compiler</strong> Command-line Options<br />

Otherwise, key is omitted. The first line in the raw listing file is always an<br />

L line identifying the primary input file. L lines are also output for #line<br />

directives where key is omitted. L lines indicate the source position of the<br />

following source line in the raw listing file.<br />

R/W/E<br />

Indicates a diagnostic, where:<br />

R<br />

W<br />

Indicates a remark.<br />

Indicates a warning.<br />

E Indicates an error.<br />

The line has the form:<br />

type "filename" line-number column-number message-text<br />

where type can be R, W, or E.<br />

Errors at the end of file indicate the last line of the primary source file and<br />

a column number of zero.<br />

Command-line errors are errors with a filename of "". No<br />

line or column number is displayed as part of the error message.<br />

Internal errors are errors with position information as usual, and<br />

message-text beginning with (Internal fault).<br />

When a diagnostic message displays a list, for example, all the<br />

contending routines when there is ambiguity on an overloaded call, the<br />

initial diagnostic line is followed by one or more lines with the same<br />

overall format. However, the code letter is the lowercase version of the<br />

code letter in the initial line. The source position in these lines is the same<br />

as that in the corresponding initial line.<br />

Example<br />

/* main.c */<br />

#include <br />

int main(void)<br />

{<br />

return(true);<br />

}<br />

Compiling this code with the option --list produces the raw listing file:<br />

L 1 "main.c"<br />

N#include <br />

L 1 "...\include\...\stdbool.h" 1<br />

N/* stdbool.h */<br />

N<br />

...<br />

2-56 Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348A<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!