From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8adbd5f9b47dede8 X-Google-Attributes: gid1164f8,public From: peterm@landau.EECS.Berkeley.EDU (Peter Mardahl) Subject: Re: DUNIX C compiler (was: Re: Digital : Not a Pretty Picture ?) Date: 1997/08/12 Message-ID: <5sq9ce$7ll@agate.berkeley.edu>#1/1 X-Deja-AN: 263749521 References: <01bc9ef0$881ef0c0$f90a87ca@yokohama> <5sicdd$hus@agate.berkeley.edu> <33F08708.5813@mathematica-mpr.com> Organization: University of California, Berkeley Newsgroups: comp.sys.dec In article <33F08708.5813@mathematica-mpr.com>, the count wrote: >> On 9 Aug 1997, Peter Mardahl wrote: >> > I'm not sure how much slower, but they might produce code as >> > slow as 60% of the Digital optimized compilers. > >But is this faster code a result of the compiler, or the OS, or both? Almost certainly the compiler. At least for the things I typically do, which are CPU and memory bound and make little use of the OS. >If, hypothetically, I were to run the DUNIX C compiler on Linux, would >I still get the faster programs? Or is there something synergistic As I said, it might matter if your program makes heavy use of the OS or system calls. For my applications, which are numerical, the OS is largely irrelevant as long as it isn't STUPID. Neither OS is STUPID, in my experience. >about the compiler and DUNIX that you need both to get the faster code? >Or is it stricly something about DUNIX, that any compiler used with >DUNIX would necessarily produce faster code? No, No. I've even run DUNIX-compiled binaries on Linux with similar performance. The OS might matter if: 1) you do LOTS of memory allocations and deallocations in the program 2) you hit the disk a lot 3) you depend on other OS services like NFS or system calls. >Is it even possible to run the DUNIX C compiler on other versions of >UNIX? Is it sold as a separate package, or only as part of the overall >DUNIX package? The machines we bought a while ago from DEC had their compiler bundled. However, they made such a big deal about giving us a "license" for the compiler "as a bonus", that I think in general you have to buy it. But I'd be amazed if you could use the DUNIX cc on another architecture and have it work. I can see no reason why DEC would have ported the compiler to anything other than DUNIX and NT, for Alpha. Though they could probably port it to Linux very easily. Hell, if they DID port it to Linux, and the port got good perf, we'd buy it if they used a reasonable price as in < $400. Regards, PeterM