Path: utzoo!yunexus!geac!daveb From: daveb@geac.UUCP (David Collier-Brown) Newsgroups: comp.sys.mac Subject: Re: Code Optimization Keywords: Single Pass Compilers Code Optimization Message-ID: <2237@geac.UUCP> Date: 10 Feb 88 13:51:59 GMT Article-I.D.: geac.2237 Posted: Wed Feb 10 08:51:59 1988 References: <6252@cc5.bbn.COM> <312@oophost.UUCP> Reply-To: daveb@geac.UUCP (David Collier-Brown) Organization: /usr/lib/news/organisation Lines: 21 In article <312@oophost.UUCP> bobc@oophost.UUCP (Bob Campbell) writes: |... analysis of what a "one-pass" compiler is is a little weak. The |one pass compilers that I am aware of do not generate assembler |output. Why? because using the assembler removes all of the speed |advantages that were gained by using "one-pass" compiler. | |>An optimizer cannot run on compiled binary - the problem is indeterminate. The |>reason is simple: The optimizer cannot differentiate between data and code. Er... It can run on the output of the code generator if that output is in something close to relocatable format, or if it is in linkable format (Unix .o, for example). It just requires more work. If most suppliers write linkable code to a standard format, writing a post-optimizer becomes more worthwhile... --dave -- David Collier-Brown. {mnetor yunexus utgpu}!geac!daveb Geac Computers International Inc., | Computer Science loses its 350 Steelcase Road,Markham, Ontario, | memory (if not its mind) CANADA, L3R 1B3 (416) 475-0525 x3279 | every 6 months.