From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ab3048d7983050df X-Google-Attributes: gid1164f8,public From: oberman@ptavv.es.net (Kevin Oberman) Subject: Re: cc vs cc -migrate on Digital Unix Date: 1996/06/20 Message-ID: #1/1 X-Deja-AN: 161240356 sender: oberman@ptavv.es.net references: <4q6pvi$s5m@lyra.csx.cam.ac.uk> organization: ESnet -- The Energy Research Network newsgroups: comp.sys.dec In article <4q6pvi$s5m@lyra.csx.cam.ac.uk> jkb@mrc-lmb.cam.ac.uk (James Bonfield) writes: > I've been trying to work out the difference between cc and cc -migrate. > They seem to produce suprisingly different code than each other. As an > example here's a simple byte swapping routine. > [Testing information deleted] > At the end of this it appears that cc -migrate is definitely the superior > compiler. Why does using this flag change things so much!? I suspect that cc > -migrate is actually an entirely different compiling engine. If it's really > better (obviously my benchmarks are one specialist and trivial case) why isn't > it the default system? I haven't got gcc compiled up on my system and I > haven't got the real c89 either so I haven't compared these. > > Trying gcc on Solaris and cc on Irix I find that all these pieces of source > compile and optimise to give the same efficiency. cc is the old MIPS C compiler. cc -migrate is the new GEM compiler. GEM is almost always far superior to the MIPS compiler and, as you guessed, a completely different engine. As to the issue of why it's not default... it is as of V4.0. The problem is that cc -migrate is licensed differently and is not included in the base software for DU. So, if you had not installed cc -migrate and its license, you could not have rebuilt the kernel. I understand that V4.0 will include cc -migrate in the base kit. -- R. Kevin Oberman Energy Sciences Network (ESnet) Lawrence Berkeley National Laboratory (LBNL) E-mail: oberman@es.net Phone: +1 510 486-8634