Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!cica!iuvax!pur-ee!pur-phy!maxwell.physics.purdue.edu!sho From: sho@maxwell.physics.purdue.edu (Sho Kuwamoto) Newsgroups: comp.sys.mac.programmer Subject: Re: C/LSC question Message-ID: <2728@pur-phy> Date: 6 Nov 89 01:26:09 GMT References: <113@fornax.UUCP> Sender: news@pur-phy Reply-To: sho@maxwell.physics.purdue.edu.UUCP (Sho Kuwamoto) Distribution: na Organization: Purdue Univ. Physics Dept., W. Lafayette, IN Lines: 17 In article <113@fornax.UUCP> mcdonald@fornax.UUCP (Ken Mcdonald) writes: >I'm writing a program in C which requires lots of calls to a small number >of very small functions. [...] >it would be quite worthwhile to have the code for these functions >inserted by the compiler directly wherever said function is called, >rather than having the compiler generate all the necessary stack >manipulations and JSRs involved in a "real" function call. 1) Get MPW C++ and use the 'inline' construct. 2) Use THINK C and use macros. (Standard C. Nothing fancy) be careful of side effects, though. -Sho -- sho@physics.purdue.edu <<-- why doesn't THINK C use #pragma once like everyone else?