Path: utzoo!attcan!uunet!snorkelwacker.mit.edu!mintaka!spdcc!iecc!compilers-sender From: markhall@pyrps5.pyramid.com (Mark Hall) Newsgroups: comp.compilers Subject: Re: Squashing C Source Message-ID: <9012111928.AA26508@pyrps5.pyramid.com> Date: 11 Dec 90 19:28:43 GMT Sender: compilers-sender@iecc.cambridge.ma.us Reply-To: markhall@pyrps5.pyramid.com (Mark Hall) Organization: Compilers Central Lines: 33 Approved: compilers@iecc.cambridge.ma.us Keyword: optimize In article <10767.9012051639@subnode.sari.ed.ac.uk> H T Fallside writes: >I'm after a preprocessor that will do in-line expansion of procedure >calls IN SOURCE for C to produce one lovely long main() procedure, >something capable of dealing intelligently with parameters and local >variables. Anyone out there got any ideas before I start writing ? Since the one true answer has yet to be posted, allow me: A Study of a C Function Inliner Jack W. Davidson and Anne M. Holler University of Virginia Heaven knows where I got this paper, probably heard they were working on it through the grapevine. I got a copy of the INLINER program from them for a small fee and one UNIX(tm) proof-of-purchase seal. You can get a copy by contacting Jack Davidson using either of: jwd@virginia.edu uunet!virginia!jwd (804)924-7605 Two years ago, when I first used it, it did a fine job. Since then Anne Holler has been improving it. By now I'm sure it'll be more than adequate for you needs. -Mark Hall (smart mailer): markhall@pyrps5.pyramid.com (uucp paths): {ames|decwrl|sun|seismo}!pyramid!markhall -- Send compilers articles to compilers@iecc.cambridge.ma.us or {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.