[comp.sys.mac] What are "Glue Routines"?

g099508030ea@deneb.ucdavis.edu (0040;0000001245;0;190;142;) (12/23/87)

In article 870080@hpcilzb.HP.COM, Ted Johnson asks:
>What are "Glue Routines"...?

The answer is very simple.  Glue routines are small code segments that
take variables from the stack and put them into data and/or address
registers, and vice-versa.  This is necessary because some of the
routines residing in the Mac rom expect their variables passed in
registers, and high level languages like Pascal or C pass program
variables on the stack.  Inside Macintosh can tell you which Toolbox
routines are stack based and which are register based.  I hope this
helps.

J. Deline