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, alpha-c@mars.iol.unh.edu
Subject: Re: ccc and inline assembly...
Date: Sun, 28 Nov 1999 07:47:08 -0500	[thread overview]
Message-ID: <3841244B.2ACF6EA6@voicenet.com> (raw)
In-Reply-To: 3840F56A.28FC170D@voicenet.com

Tried the example from c-asm.h. No <machine/pal.h> :-/.
even with that i cannot do "asm ( ".weak " "__sigprocmask");
i cannot tell if .weak is a boo boo, or whatever options there are.

    #include <c_asm.h>
#if 0
    #include <machine/pal.h>
#endif

   #define QUOTE(s) #s
   #define STR(s) QUOTE(s)
   #define WRUNIQ(uniq) asm("call_pal " STR(PAL_wruniq), (uniq))
   #define RDUNIQ() asm("call_pal " STR(PAL_rduniq))

   main()
       {
       int i = 123456;
       int j;

          WRUNIQ(i);

          j = RDUNIQ();

          printf("i=%d; j=%d\n", i, j);
         }
~


Uncle George wrote:

> So, i suppose that there is no docs for it.
>
> gat
>
> Mark Abene wrote:
>
> > To whoever asked (I think it was Uncle George), the syntax for inline assembly


  reply	other threads:[~1999-11-28 13:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-28  9:42 ccc and inline assembly Mark Abene
1999-11-28  9:27 ` Uncle George
1999-11-28 12:47   ` Uncle George [this message]
1999-11-28 16:04     ` Mark Abene
1999-11-29 13:00       ` Uncle George
1999-11-28 18:44   ` Dan Frasnelli
  -- strict thread matches above, loose matches on Subject: below --
1999-11-30 21:18 Pete Wyckoff
1999-12-09 12:22 ` Uncle George
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