Re: ccc and inline assembly...


Subject: Re: ccc and inline assembly...
From: Uncle George (gatgul@voicenet.com)
Date: Sun Nov 28 1999 - 03:47:08 AKST


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

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com



This archive was generated by hypermail 2a23 : Sun Nov 28 1999 - 04:49:49 AKST