Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!princeton!udel!rochester!bbn!uwmcsd1!ig!agate!helios.ee.lbl.gov!lll-tis!ames!oliveb!amiga!jimm From: jimm@amiga.UUCP Newsgroups: comp.sys.mac.programmer Subject: Re: That amazing MPW C compiler. Keywords: MPW C bug Message-ID: <2290@amiga.UUCP> Date: 3 Jun 88 17:59:23 GMT References: <3428@tekgvs.TEK.COM> <11531@apple.Apple.Com> Reply-To: jimm@cloyd.UUCP (Jim Mackraz) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 37 Posted: Fri Jun 3 13:59:23 1988 In article <11531@apple.Apple.Com> tecot@apple.UUCP (Ed Tecot) writes: )In article <3428@tekgvs.TEK.COM> larryh@tekgvs.TEK.COM (Larry Hutchinson) writes: )> )>In the little routine below, the compiler actually did )>what I wanted and NOT what I told it to do! ) )You've stumbled upon the -dwim option of the MPW 2.0.2 C compiler. This can )also be invoked by the compiler directive: )#read my mind ) _emt I think this option should not be the default. I released an example program to wide distribution (Greenhills complier, actually, on an*ther computer, but close enough) in which I failed to pass an argument to a function. Worked fine. Needless to say, normal compilers couldn't reproduce the intended effect. When I set the "verbose" option much later, it said: "Pretty sloppy, man, but I got you covered." Just so there is some non-zero content to this posting, I offer the folowing: I maintain a module about 52K big that has to fit in a crowded ROM. Based on experience from an earlier life, I came in one night and went through the whole thing judiciously declaring register variables. Recompiled, and the resulting object got BIGGER. Greenhills (MPW-C) must have a Master Degree in Science: It's smarter than you are (or at least me). jimm -- Jim Mackraz, I and I Computing amiga!jimm BIX:jmackraz Opinions are my own. Comments regarding the Amiga operating system, and all others, are not to be taken as Commodore official policy.