On Sat, 25 Sep 1999, Chakrabarti, Suvendra (CTS) wrote:

> Regarding assembly codes in Linux, since many of us are using i386
> m/c's, we ought to use as86, a link to gas and which is expected to
> compile the codes for x86 machines only.

No. as86 generates 16-bit real mode code. as/gas on the other hand only
generates 32 bit protected mode code. The former is used only in the
bootup code, the latter in the bulk.

> the other is with .s, which looks like assembly for some other
> architecture - (64 bit architectures ???).

No. Code generated by as/gas depends what architecture it was compiled on
and whether it was configured as a cros compiler. In your case, it must be
the usual x86 architecture, but the syntax (referred to as AT&T syntax) is
different from the one used by NASM/MASM/TASM (which is referred to as
Intel syntax)

> I hope to get the answer also in the digest :-)

I hope this makes it to the digest. Good luck

--------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

Reply via email to