Path: utzoo!mnetor!uunet!husc6!hao!ames!ucbcad!ucbvax!ucdavis!deneb.ucdavis.edu!g099508030ea From: g099508030ea@deneb.ucdavis.edu (0040;0000001245;0;190;142;) Newsgroups: comp.sys.mac Subject: Re: What are "Glue Routines"? Message-ID: <753@ucdavis.ucdavis.edu> Date: 23 Dec 87 07:19:06 GMT Sender: uucp@ucdavis.ucdavis.edu Reply-To: jedeline@deneb.ucdavis.edu.UUCP (Jim Deline) Followup-To: 87080@hpcilzb.HP.COM Organization: University of California, Davis Lines: 14 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