Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: Re: Alpha asm & Linux
Date: Tue, 04 May 1999 07:26:52 -0400	[thread overview]
Message-ID: <372ED97C.6F79A31C@voicenet.com> (raw)
In-Reply-To: 372DE314.F18A0469@paralleldata.com

Wes Bauske wrote:

> Uncle George wrote:
> >
>
> If you snoop around in the kernel code, you can find
> examples of how to inline asm in C code.
>

Yup, thats how u know that that particular ( __asm__) facility is available,
as well as __inline__ , there is probably some more esoteric enhancements.

>
> > gat
> > BTW assembler & UNIX has always been difficult
> >
>
> In what way?

    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!
    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.
    Register conventions ( in __asm__ u gotta know that $9 is s0 )
    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"
    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

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

> 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 ),
    I believe also GP
    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



  reply	other threads:[~1999-05-04 10:59 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 [this message]
1999-05-04 18:12       ` Wes Bauske
  -- 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