Re: Change Inline Assembly Syntax

Arsen Arsenović <[email protected]> Mon, 11 May 2026 10:45:59 +0200
Newsgroups gmane.comp.gcc.help
Organization BayLibre
Message-ID <[email protected]>
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Tadeo The rocket builder <[email protected]> writes:

> The Inline Assembly Keyword (__asm__) uses The Assembly AT&T Syntax,
> However, I Am used To NASM Assembly Syntax, If You don't want to
> remove AT&T but listen to this email, you can make versions of the
> Inline Assembly Keyword like __asmnasm__ and keeping the old __asm__
> Keyword With AT&T Syntax. i am forcing you, just asking if you can add
> A NASM syntax Version Of Assembly for The Inline Assembly keyword. or
> just change The __asm__ keyword syntax.

It doesn't, it uses whatever you pass as '-masm=3D'.  See
https://gcc.gnu.org/onlinedocs/gcc-16.1.0/gcc/x86-Options.html#index-masm_0=
03ddialect-1

Incidentally, I am working on a way to allow having inline assembly
blocks that utilize Intel syntax in an AT&T formatted file, and vice
versa, but that work isn't done yet.
=2D-=20
Arsen Arsenovi=C4=87

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEKBAEWCgCyFiEE/uKz0RP8AKMWLWBhUsKUMB6ixJMFAmoBl0cbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGRUUyQjNEMTEzRkMwMEEzMTYyRDYw
NjE1MkMyOTQzMDFFQTJDNDkzGBxhYXJzZW5vdmljQGJheWxpYnJlLmNvbQAKCRBS
wpQwHqLEk7i5AQDqwAeUAFvfa1I+zfWanNDRZ58dfBl2BEyx6t4kiu1vrwEAoamJ
XVfhVCUQMhl4zHeEjho+WFPcr1pSLNtctCvBVgw=
=9fv4
-----END PGP SIGNATURE-----
--=-=-=--