* Dec Alpha C++ Compiler and Templates
@ 1997-04-30 4:00 Keith Rubin
1997-05-01 4:00 ` Bill Deegan
1997-05-03 4:00 ` Peter Mardahl
0 siblings, 2 replies; 4+ messages in thread
From: Keith Rubin @ 1997-04-30 4:00 UTC (permalink / raw)
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
in GBs!), and the time (measured in hours!) that we need to
compile and link our code. We have tried a number of different
compile options and have not had much success. Does anyone have
any help for us, or is the Dec compiler just bad at handling
Templates?
Any advice or information is welcome.
Keith
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Dec Alpha C++ Compiler and Templates
1997-04-30 4:00 Dec Alpha C++ Compiler and Templates Keith Rubin
@ 1997-05-01 4:00 ` Bill Deegan
1997-05-02 4:00 ` Keith Rubin
1997-05-03 4:00 ` Peter Mardahl
1 sibling, 1 reply; 4+ messages in thread
From: Bill Deegan @ 1997-05-01 4:00 UTC (permalink / raw)
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
> in GBs!), and the time (measured in hours!) that we need to
> compile and link our code. We have tried a number of different
> compile options and have not had much success. Does anyone have
> any help for us, or is the Dec compiler just bad at handling
> Templates?
Which version of the c++ compiler are you using?
type :
/sbin/setld -i | grep -i cxx
-Bill
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Dec Alpha C++ Compiler and Templates
1997-05-01 4:00 ` Bill Deegan
@ 1997-05-02 4:00 ` Keith Rubin
0 siblings, 0 replies; 4+ messages in thread
From: Keith Rubin @ 1997-05-02 4:00 UTC (permalink / raw)
To: Bill Deegan
Bill Deegan wrote:
>
> 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
> > in GBs!), and the time (measured in hours!) that we need to
> > compile and link our code. We have tried a number of different
> > compile options and have not had much success. Does anyone have
> > any help for us, or is the Dec compiler just bad at handling
> > Templates?
>
> Which version of the c++ compiler are you using?
>
> type :
> /sbin/setld -i | grep -i cxx
>
> -Bill
When I run the above command I get:
CXXBASE550 installed DEC C++ (cxx) for Digital UNIX
CXXMAN550 installed DEC C++ and class library manual pages
CXXV4HDR550 installed DEC C++ header files for Digital UNIX V4.0 or later
My (very basic) understanding of the problem may be that the Dec compiler uses
the cfront compiler. I was doing similiar work on an HP a couple of years and
we had the same problem with their compiler (which I understand also used
cfront) and its poor performance with templates. We actually had HP engineers
in-house working with us and they could not improve the performance. I think
HP recently came out with a totally new compiler. Any ideas or suggestions are
welcome. We are currently looking at the GNU compiler, and another company's
compiler that runs on the DEC.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Dec Alpha C++ Compiler and Templates
1997-04-30 4:00 Dec Alpha C++ Compiler and Templates Keith Rubin
1997-05-01 4:00 ` Bill Deegan
@ 1997-05-03 4:00 ` Peter Mardahl
1 sibling, 0 replies; 4+ messages in thread
From: Peter Mardahl @ 1997-05-03 4:00 UTC (permalink / raw)
In article <3367A530.5AC0@mail.amsinc.com>,
Keith Rubin <keith_rubin@mail.amsinc.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-05-03 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-30 4:00 Dec Alpha C++ Compiler and Templates Keith Rubin
1997-05-01 4:00 ` Bill Deegan
1997-05-02 4:00 ` Keith Rubin
1997-05-03 4:00 ` Peter Mardahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox