|Home > Migrating from armasm to the armclang Integrated Assembler > Symbol naming rules|
armasm syntax assembly code and GNU syntax assembly code use similar, but different naming rules for symbols.
Symbol naming rules which are common to both
armasm syntax and
GNU syntax include:
Symbol naming rules which differ between
armasm syntax and GNU
armasm syntax symbols must start with a letter or the underscore
GNU syntax symbols must start with a letter, the underscore character "_", or a period ".".
armasm syntax symbols use double bars to delimit symbol names
containing non-alphanumeric characters (except for the underscore):
GNU syntax symbols do not require double bars: