Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!acd4!mjb From: mjb@acd4.UUCP ( Mike Bryan ) Newsgroups: comp.unix.ultrix Subject: Re: compile times... Keywords: VAX vs MIPS Message-ID: <1989Oct10.140932.27691@acd4.UUCP> Date: 10 Oct 89 14:09:32 GMT References: <6709@hubcap.clemson.edu> Reply-To: mjb@acd4.UUCP ( Mike Bryan ) Organization: Applied Computing Devices, Inc., Terre Haute, IN Lines: 32 In article <6709@hubcap.clemson.edu> hubcap@hubcap.clemson.edu (Mike Marshall) writes: >He told me that his benchmark program ran on my DECstation 3100 as fast as >it did on an IBM 3081 mainframe. But, he said, it took forever to compile. > >It compiles on our VAX-8810 running ULTRIX in about 20-30 seconds. On my >workstation, it took about 8 minutes to compile. > >I am assuming that the reason that it takes so long on on my workstation >can be attributed to the fact that RISC compilers have so much more work >to do than "regular" compilers. I've seen similar things here. I just recently compiled a set of programs on a MicroVAX II and a DECSystem 5400. Both systems have 16MB of memory; the MVII has an RA81, the 5400 has an RF71. Overall, the 5400 was faster by about a factor of 2.5. However, on one particularly large module (about 5000 lines), the compile time went up from 40 seconds to 50 minutes. Continuous "ps -axv" and "vmstat" commands showed that (1) the program "uopt" wanted 18 MB of memory, and was getting about 75% of system memory and 1% of the CPU time, and (2), the system was paging *extremely* heavily. Turning off optimization (the "-O" flag) caused the compile time to go back down to 30 seconds. It appears that once you reach a certain complexity in a program, the optimizer requires so much memory that your system starts thrashing madly. With all the new "wonderful" switches for "cc(1)", it would be nice to have one saying "optimize until you reach 'too much memory'". -- Mike Bryan, Applied Computing Devices, 100 N Campus Dr, Terre Haute IN 47802 Phone: 812/232-6051 FAX: 812/231-5280 Home: 812/232-0815 UUCP: uunet!acd4!mjb ARPA: mjb%acd4@uunet.uu.net "Did you make mankind after we made you?" --- XTC, "Dear God"