Subject: Re: Making the (asm) world safe for modern cpp
To: Jim Wise <jwise@draga.com>
From: Ian Lance Taylor <ian@wasabisystems.com>
List: tech-toolchain
Date: 09/18/2003 09:10:33
Jim Wise <jwise@draga.com> writes:

> Which architectures use `#' in the default assembly syntax?

Well, according to gas, the following use '#' in one way or another,
usually to indicate an immediate constant:

ARM, DLX, FR30, FRV, H8/300, H8/500, HPPA, i860, ia64, m68k, M*Core,
MMIX, MSP430, NS32K, OpenRISC, PDP/11, SH, SPARC, RMS320C[34]X, VAX,
W65, Z8000.

The following gcc targets define IMMEDIATE_PREFIX to be "#":

frv, m32r, m68hc11, m68k, stormy16

Some gcc targets use '#' as an immediate prefix without actually
defining IMMEDIATE_PREFIX.

Ian