From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,89acdb3c0520ac77 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-19 04:38:08 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!Germany.EU.net!news.dfn.de!news.belwue.de!delos.stgt.sub.org!news From: Martin Bodenstedt Newsgroups: comp.unix.osf.osf1 Subject: Re: Anyone using USL C++ Standard Components on Alpha? Date: 19 Nov 1994 12:02:47 GMT Organization: Delos Stuttgart, Germany Message-ID: <3akphl$a39@delos.s.bawue.de> References: <3adt5f$32p@solaris.cc.vt.edu> NNTP-Posting-Host: mbonet.es.bawue.de > We're going to be porting some C++ code from an HP system to Alpha OSF/1 > v3.0. The code is dependent on the USL C++ Standard Components library. I > have heard there have been some problems acclimating this to the Alpha and > DEC C++. Specifically: > > - 64-bit architecture, sizeof(int) != sizeof(char*), size_t != int > - diffs between DEC C++ and cfront: template instantiation, source > file naming > > Has anyone successfully gotten USL C++ Standard Components working with > DEC C++? If so, can you offer any war stories, time-to-port estimates, > diffs?! > > Many thanks- Luke Ward > > Blacksburg Electronic Village Development lukew@zappa.cns.vt.edu > Virginia Polytechnic Institute and State University (703)231-6026 > Blacksburg, Virginia, USA 24061-0506 > Hi, in a large inhouse project we've done the porting in the opposite direction (from DEC C++ OSF/1 to HPUX) and discovered the following problems: the HP C++ Compiler is much stricter in the interpretation of the ARM, but going zhe other direction should be a snap. As long as You make no assumptions about the size and alignment of data types (you pointed out out some examples already) there should be no problems there. The major difference is the instantiation of templates. On DEC C++ you have to define a pragma macro for each and every template signature you intend to use: Example: #pragma templateClass ; You must include the source file for your container class and compile the whole thing into one object module (this can take a while). Some other differences are the number of libraries to include in the makefile, but that should be relatively straight forward... Good luck, Martin BtW, my mail address at the office is Bodenstedt@suo.mts.dec.com (guess who I work for...)