From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: Alpha asm & Linux
Date: Tue, 04 May 1999 13:12:31 -0500 [thread overview]
Message-ID: <372F388F.2954208C@paralleldata.com> (raw)
In-Reply-To: 372ED97C.6F79A31C@voicenet.com
Uncle George wrote:
>
> Wes Bauske wrote:
>
>
> Take for instance Opcodes. Ever try to figure out how to add "/U"
> or "/S" or "/V", i'm sure i can find more strangeness if i were to try all
> the opcodes!
OK, that falls under the quirks of the given machine.
Looking at gcc output should show you how to do that.
Just set the appropriate flag "-mieee", and see how it
differs from a non-flagged run. In general, I have no
interest in the various trap modes since they hurt
performance and about the only reason I'd use asm is
to get better performance.
> Old pdp11/ATT unix assembler jumps/goto's were either a forward ref of
> backward ref.
> I cant tell if branch labels is gonna be defined as a local symbol or
> global.
I thought there was a specific declaration to make a symbol external.(.globl)
Otherwise it's local.
> Register conventions ( in __asm__ u gotta know that $9 is s0 )
Is there no way to make your own register names on Alphas?
I used to use things like "F4 equ 4" on MVS many moons ago
keep my eyeballs straight when using FP instructions.
> Yes, frontend & backend "C" linkages. I generally take a "something.c"
> program with the same arglist an "C" compile with -S. THEN
> u also observe in the resultant .s file various assembler directives
> that does who knows what, and if u reserarch l( perservere ) ong enough u
> will find them based on "dec unix"
So, Alpha Linux is a halfbreed, part GNU, and part DEC UNIX.
Need both doc sets.
> Debugging - need i say more
> A particular peeve is that the opcode isn;t always printed out with
> an Alpha assembler opcode
> Try matching register conventions with "cc -S", and gdb
>
Haven't written anything so large lately that I couldn't
just stare at it for a while and see what the problem
was. From looking at gcc asm output, I didn't see anything
particularly unusual, but then I could have missed it.
> > 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,
>
> Did u mean __asm__ rather than inlineing ?
Both.
>
> > 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.
>
> Dont forget the FP ( no not floating point ),
Frame pointer
> I believe also GP
Global pointer
> gdb stack traces
>
> > What am I not seeing?
> >
>
> Let me also not forget that "please refer to the assembler docs" has always
> accompanied by most man references. When I see that i also notice a lack of
> complete assembler docs ( maybe i should say up-to-date assembler docs ).
> THis is not just endemic of ALPHA/LINUX but of most unix's
>
In general, I agree finding asm docs is more difficult
on UNIX. Mostly due to the fact almost no application
programmers need them.
I grabbed copies off one of Digital's old sites for
their asm progammer's guide and the Architecture reference
and they've so far explained everything I needed to know.
Try:
http://www.partner.digital.com/www-swdev/pages/Home/TECH/documents/Digital_UNIX/V4.0/Digital_UNIX_Bookshelf.html
http://www.partner.digital.com/www-swdev/pages/Home/TECH/documents/alpha_cookbook/biblio.htm
Might be newer stuff out there but they show most stuff.
Wes
next prev parent reply other threads:[~1999-05-04 19:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-03 13:14 Alpha asm & Linux Tenhave, Tim
1999-05-03 15:13 ` Uncle George
1999-05-03 17:12 ` Philip Blundell
1999-05-03 20:33 ` Uncle George
1999-05-03 17:55 ` Wes Bauske
1999-05-04 11:26 ` Uncle George
1999-05-04 18:12 ` Wes Bauske [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-03-07 2:10 The VX1 Shakes Redux "Thursday" AKA dr. john
2002-03-07 2:45 ` Uncle George
2002-03-07 6:14 ` Stephen Williams
2002-03-07 13:28 ` Uncle George
2002-03-07 13:53 ` Peter Petrakis
2002-03-07 20:31 ` Stephen Williams
2002-03-07 20:51 ` geerten kuiper
2002-03-07 21:01 ` Michael A. Foley
2002-03-07 21:45 ` Terry A. Bowling
1999-05-02 3:26 Alpha asm & Linux Dan Morrill
1999-05-02 4:01 ` Wai-Sun Chia
1999-05-02 16:12 ` Jeff DeMaagd
[not found] <gatgul@voicenet.com>
1997-01-20 3:17 ` NCR SCSI woes - stupid owner tricks Bryan W. Headley
1997-01-20 5:15 ` Richard Henderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox