Re: Compiling assembler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<davidw567@xxxxxxxxxxxx> writes:

> Some of the routines in this are written in assembler, inline ( a few hundred lines).
> These compile under Visual C++.
> 
> I have seen that GCC is AT&T based so the assembler code needs lots of changes.
> Somebody on one of the forums thought there was an option for GCC to compile Intel based assembler, is this so and how.

gcc does not look inside inline assembler code, so it doesn't
necessarily matter what syntax you use, as long as the assembler
understands it.

gcc will generate Intel assembler syntax with the -masm=intel option.

gas (the GNU assembler) understands Intel assembler syntax with the
.intel_syntax pseudo-op.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux