Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!usc!csun!fedeva!premise!mirror!frog!john From: john@frog.UUCP (John Woods) Newsgroups: comp.lang.c Subject: Re: Short code to determine compiler's register use Message-ID: <1638@frog.UUCP> Date: 17 Jul 89 22:03:00 GMT References: <396@uop.uop.EDU> Organization: Misanthropes-R-Us Lines: 18 In article <396@uop.uop.EDU>, greg@uop.EDU (Greg Onufer) writes: > Some students here had to determine the number of registers (data > and address, we use 680x0's) the C compiler uses. The Greenhills C compiler returns 19 data and 19 address registers. Tee hee. > The GNU C > compiler should not be used, it will always return 19 (the max > number of registers the program was written to find...), optimization > on or off. That should have been a red warning. -- John Woods, Charles River Data Systems, Framingham MA, (508) 626-1101 ...!decvax!frog!john, john@frog.UUCP, ...!mit-eddie!jfw, jfw@eddie.mit.edu People...How you gonna FIGURE 'em? Don't bother, S.L.--Just stand back and enjoy the EVOLUTIONARY PROCESS...