From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ba29a2398fe768bb X-Google-Attributes: gid1164f8,public From: peterm@landau.EECS.Berkeley.EDU (Peter Mardahl) Subject: Re: Dec Alpha C++ Compiler and Templates Date: 1997/05/03 Message-ID: <5kft8n$quc$1@agate.berkeley.edu>#1/1 X-Deja-AN: 239137495 References: <3367A530.5AC0@mail.amsinc.com> Organization: University of California, Berkeley Newsgroups: comp.sys.dec In article <3367A530.5AC0@mail.amsinc.com>, Keith Rubin wrote: > >We are currently trying to port a C++ application to the Dec Alpha. >We are heavily dependent on Templates and are having a lot of >problems compiling and linking due to the large amount (measured >Any advice or information is welcome. We have some alphas which we use for our C++ scientific simulation code, among other things. This program makes use of templates as well. I *did* eventually succeed in getting DEC's c++ 5.1 compiler to work with our templated code. It was sort of finicky, and I had to re-write the template code somewhat to get it to work. I can't remember exactly what I did to it. However, my opinion is that DEC C++ isn't worth using: it was hard to get working, AND once working, it produced SIGNIFICANTLY slower code, even with these optimization flags: -migrate -O2 I use g++ 2.7.2 and am very happy. Compiled code is 2.1x faster than DEC CXX 5.1, AND it compiles more quickly. Regards, PeterM