home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!pacbell.com!well!well.sf.ca.us!folta
- From: folta@well.sf.ca.us (Stephen Folta)
- Subject: Re: Think C & #pragma parameter (was: help calling assembly from C)
- Message-ID: <folta.728035385@well.sf.ca.us>
- Sender: news@well.sf.ca.us
- Organization: Whole Earth 'Lectronic Link
- References: <2B6198C1.22487@news.service.uci.edu> <keith-240193173019@kip-50.taligent.com> <1jvlnrINNst4@crcnis1.unl.edu> <C1E4Hz.5BA@world.std.com>
- Distribution: usa
- Date: Tue, 26 Jan 1993 08:03:05 GMT
- Lines: 14
-
-
- Rich Siegel (siegel@world.std.com):
- > #pragma parameter is really a hack (which originated with MPW C) to
- > provide a way to call register-based traps without requiring an
- > external glue library; trying to use it for anything else is extending
- > it somewhat beyond its limits...
-
- I use a PStrCpy that is declared as inline assembly with #pragma parameter.
- Of course it was kind of a pain to assemble it by hand, but it's only four
- instructions and I consider it well worth it, as this is a function that I
- use *very* often.
-
- Steve Folta
- folta@well.sf.ca.us
-