Re: C++
On Feb 24, 6:50 am, "Alf P. Steinbach" <al...@start.no> wrote:
* James Kanze:
There is a standard ABI for one platform, I think.
Not sure which one you're referring to.
Not to sure myself. It's not one I actually use, at any rate.
(Seriously, I think it is the 64 bit Intel architecture.)
There's certainly not one for Sparc, nor for Windows. (And
for Windows on a PC, there's only an informal one: what g++
uses.)
That's a typo. I should have said "for Linux on a PC".
Obviously, what g++ is not a de facto standard in the PC world.
Windows has two (platform-) standard ABIs, namely COM and .NET. These
are language-independent ABIs, but COM was mainly designed for C++, with
extensions (called "OLE Automation", essentially the interface IDispatch
plus associated types) for Visual Basic and scripting languages.
Neither COM nor .NET supports C++ templates, so, essentially, the C++
standard library can only be used internally by components.
And both, I think, require some additional explicit
declarations. If I just write standard C++, and compile it, I
won't end up with either. (Or will I?)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34