From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12336 invoked from network); 3 May 1999 19:27:17 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 May 1999 19:27:17 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA05002 for ; Mon, 3 May 1999 14:55:33 -0400 Received: by paralleldata.com from localhost (router,SLMail V2.5); Mon, 03 May 1999 13:59:19 -0500 Received: by paralleldata.com from paralleldata.com (207.158.83.75::mail daemon; unverified,SLMail V2.5); Mon, 03 May 1999 13:59:17 -0500 Sender: "Wsb" Message-ID: <372DE314.F18A0469@paralleldata.com> Date: Mon, 03 May 1999 12:55:32 -0500 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.2.3 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Alpha asm & Linux References: <21ECC6E090DCD21180D20000F809A18B07B643@EXCTAY-02> <372DBD12.BDCFF640@voicenet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Uncle George wrote: > > This book/docs may explain the machine instructions & architecture > issues - it certainly does not explain how to really write an assembly > program on linux/alpha - or incorporate the assembler in the "C" > __asm__ stuff. Also more annoying is the register nameing convensions - > i'd like very much to use t0, a0 and the like. If you snoop around in the kernel code, you can find examples of how to inline asm in C code. > gat > BTW assembler & UNIX has always been difficult > In what way? The calling interface is more painful from what I've seen. By splitting the args between regs and memory, one can make the code faster so it's a tradeoff in complexity for speed. Also, by inlining things inside C, you can avoid having to code your own interface. Also, asm for the specific machine has it's own quirks but no more so than other machines. Other than that, its just managing the stack. What am I not seeing? Wes