[comp.sys.mac.programmer] ? In Line Assembly For MPW C ?

cpyang@ccnysci.UUCP (Chao Ping Yang) (03/01/89)

I know there is nothing like that since NO environment
is perfect, but Can somebody provide me with a template
to write an Assembly routine for my C program? I mean
the passing of arguments from C to Assembly in MPW.

Thanks in advance.


-- 
==Chaoping
cpyang@ccnysci.bitnet

bob@accuvax.nwu.edu (Bob Hablutzel) (03/02/89)

> I know there is nothing like that since NO environment
> is perfect, but Can somebody provide me with a template
> to write an Assembly routine for my C program? I mean
> the passing of arguments from C to Assembly in MPW.

I'll assume that you're using the MPW assembler, and can therefore use the
program structured macros that come with it. Using these macros, you can
declare a routine with a HLL like header (OK, a pascal-like header), which
uses standard Mac parameter passing. Optionally, you can tell the routines to
use C calling standards, but off the top of my head I don't remember how.
(I don't use C, so I've never used this). The routines are, by the way, 
insanely great. Highly recommended.

Bob Hablutzel	Wildwood Software	BOB@NUACC.ACNS.NWU.EDU