|Home > Migrating from armasm to the armclang integrated assembler > Comments|
A comment identifies text that the assembler ignores.
A comment is the final part of a source line. The first semicolon on a line marks the beginning of a comment except where the semicolon appears inside a string literal.
The end of the line is the end of the comment. A comment alone is a valid line.
; This whole line is a comment ; As is this line myProc: PROC MOV r1, #16 ; Load R0 with 16
GNU syntax assembly code provides two different methods for marking comments:
*/ markers identify multiline comments:
/* This is a comment that spans multiple lines */
// marker identifies the remainder of a line as a comment:
MOV R0,#16 // Load R0 with 16