Keil™, An ARM® Company

RealView Compiler Reference Guide

Technical Support

On-Line Manuals

RealView Compiler Reference Guide

Preface
Introduction
Compiler Command-line Options
Language Extensions
Preprocessor extensions
#assert
#include_next
#unassert
#warning
C99 language features available in C90
// comments
Subscripting struct
Flexible array members
C99 language features available in C++ and C90
Variadic macros
long long
restrict
Hex floats
Standard C language extensions
Constant expressions
Array and pointer extensions
Block scope function declarations
Dollar signs in identifiers
Top‑level declarations
Benign redeclarations
External entities
Function prototypes
Standard C++ language extensions
? operator
Declaration of a class member
friend
Read/write constants
Scalar type constants
Type conversions
Standard C and standard C++ language extensions
Address of a register variable
Arguments to functions
Anonymous classes, structures and unions
Assembler labels
Empty declaration
Hexadecimal floating‑point constants
Incomplete enums
Integral type extensions
Label definitions
Long float
Non static local variables
Structure, union, enum, and bitfield extensions
GNU language extensions
Alternate keywords
asm keyword
Case ranges
Cast of a union
Character escape sequences
Compound literals
Designated inits
Conditionals
Initializers
Inline
Extended lvalues
Pointer arithmetic
Statement expressions
Unnamed fields
Compiler-specific Features
C and C++ Implementation Details
Via File Syntax
Standard C Implementation Definition
Standard C++ Implementation Definition
C and C++ Compiler Implementation Limits

// comments

3.2.1. // comments

The character sequence // starts a one line comment, just as in C99 or C++.

// comments in C90 have the same semantics as // comments in C99.

Example

// this is a comment

See also

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0376A