Path: chuka.playstation.co.uk!news From: gil@snsys.com (Gil Jaysmith (Telecommuting)) Newsgroups: scea.yaroze.freetalk Subject: Re: C versus C++ Date: Thu, 15 Jan 1998 22:16:41 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 31 Message-ID: <34be87b9.1478696@news.playstation.co.uk> References: <69lj2b$e6h1@emeka.playstation.co.uk> <34be2b03.37497909@news.scea.sony.com> NNTP-Posting-Host: th-eng11-124.pool.dircon.co.uk X-Newsreader: Forte Free Agent 1.1/32.230 On Thu, 15 Jan 1998 15:30:50 GMT, matth@bellatlantic.net (Matthew Hulett) wrote: > Are you sure of this? Mike Fulton said this to me some time ago: >The compiler that we supply with the commercial developer's kit is not >the same as the one in the Yaroze package, and it fully supports C++. >However, Sony does not officially support this feature. The reason >has to do with the PlayStation-specific libraries, support files, and >C include files, but not the compiler itself. Yus... the statements I've had from Sony on the matter are usually along those lines, with no further explanation, which is why I thought I'd ask. In practice the only real problem you get with C++ on the pro kit is that the final CD-based startup code forgets to call constructors, and I both discovered and got around that today. In Yaroze terms, I don't see the problem. You'd need to add extern "C" to the headers (in fact its absence makes me wonder which version of the libraries was used for Yaroze ;=). The Yaroze linker script already handles global constructor collation; all you'd need is the right bit of startup code, which should be somewhere in the GCC source already, and you're away. The wording of that last Sony sentence is what's always confused me; you don't *need* any support in the PlayStation-specific libraries, support files, and C include files for C++ to work. Whether it does a full ANSI C++ job is another thing, but it's not like PlayStation C is ANSI-compliant. The GNU libg++ library could conceivably be ported, but SN hasn't had the time yet, and no-one else wants to spend the time and money on doing it - although I don't doubt everyone would snap it up were we to do it :) - Gil