On Sat, 25 Sep 1999, Chakrabarti, Suvendra (CTS) wrote:
> 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 ;-)
>

files with the .s extensions are in the AT&T syntax where the source and
destination are reversed wrt INTEL syntax.check out assembly-howto 
docs `.




 
> 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

 try nasm/gasm(http://gasm.cjb.net)
which is an excellent assembler with support for 3d-k6 now. 
 


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