Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!ucsd!ucrmath!rhyde From: rhyde@ucrmath.ucr.edu (randy hyde) Newsgroups: comp.sys.apple2 Subject: Re: Any Pascal programmers for Apple II GS? Message-ID: <14308@ucrmath.ucr.edu> Date: 9 May 91 07:20:20 GMT References: <5184@cernvax.cern.ch> <52593@apple.Apple.COM> Organization: University of California, Riverside Lines: 19 >>>>> Plus, I'm not sure of this.... so anyone correct me if I'm wrong, I think that since PASCAL optimization techniques are more STANDARD, any pascal compiler for the GS will do a better job then any C compiler just because PASCAL optimization has been around longer and thus more likely to be incorporated. <<<<< Two comments- most optimizations are language independent. Things like common subexpressions, loop invariants, etc. The fact that Pascal has been around longer than C isn't true. C was actually created in the late 60's and very early 70's. pascal was invented shortly thereafter. More research has gone into optimizing C compilers, which is why C compilers, today, generally produce better code than pascal compilers (MPW Pascal is an obvious exception). Second-- Pascal, theoretically, can be optimized better than C. C allows unbridled use of pointers. It is very difficult to optimize such code (correctly) If Pascal were commercially viable and people were to put the same research into Pascal as they do into C, code generators for pascal would probably be a little better than those for C. *** Randy Hyde