Node: Escape Sequences, Next: , Previous: Type Layout, Up: Target Macros



Target Character Escape Sequences

By default, GCC assumes that the C character escape sequences take on their ASCII values for the target. If this is not correct, you must explicitly define all of the macros below. All of them must evaluate to constants; they are used in case statements.

Macro Escape ASCII character
TARGET_BELL \a 07, BEL
TARGET_CR \r 0D, CR
TARGET_ESC \e, \E 1B, ESC
TARGET_FF \f 0C, FF
TARGET_NEWLINE \n 0A, LF
TARGET_TAB \t 09, HT
TARGET_VT \v 0B, VT

Note that the \e and \E escapes are GNU extensions, not part of the C standard.