FWIW, you can see how systrap resolves by looking in common.h (at least for
pre-3.5 SDKs).  Basically it inlines a 68000 'trap' instruction, followed by
a 16 bit data constant that represents the system call (or library
function).

-jjf

-----Original Message-----
From: Jason Dawes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 8:53 AM
To: Palm Developer Forum
Subject: __attribute__ (Was: Re: Shared library calls)


At 12:55 PM 5/17/00 -0400, you wrote:
> 
> Extern MSLErr MSLOpen( UInt uRefNum ) SYS_TRAP ( sysLibTrapOpen );
> 

I was going to say "find out what the SYS_TRAP macro is defined as - you
might be able to build a dynamic version", but it uses an undocumented
compiler define __attribute__.

Hey Metrowerks, whats an "__attribute__" when it's at home?


-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to