Hi,

I had discontinued myself from the main mailing list, but now I do subscribe
to the digest. 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.

I have seen two extensions for assembly codes in the kernel sources. One is
.S, the code for which resembles the one which we had compiled with
MASM/ TASM and the other is with .s, which looks like assembly for some
other architecture - (64 bit architectures ???). 'make' does default to
extensions,
isn't it ;-)

I had tried to write very simple two liners and tried to compile them with
as86,
but whenever I try to execute ld or ld86 (if I remember that correctly) on
the
object files (that is what we should get after compiling with as86's), I get
an
error 'bad header' types - I cannot recall the exact message, but the gist
is
obviously a bad header in the object file. What is wrong here ?

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

Suvendra

Date: Thu, 23 Sep 1999 15:28:44 +0530 (IST)
From: Gurunandan R Bhat <[EMAIL PROTECTED]>
Subject: Re: [LI] inline assembly in C

On Wed, 22 Sep 1999, Mani Murugesan wrote:

> Does C under linux (gcc) support inline assembly routines? 


--------------------------------------------------------------------
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