Re: Is KDe coming to Win32
- From: Nico Aragon <this@xxxxxxx>
- Date: Mon, 31 Mar 2008 19:51:13 +0200
Hans-Peter Diettrich wrote:
I wonder what would be needed for Delphi to "understand natively" code compiled by C++.
That's near impossible, as long as every C++ compiler can implement a different object model.
I don't mean to have it before someone writes a new compiler, but to interface with VC, GCC and obviously CG's own compilers.
> When the C++ code compiles in CBuilder or the
C++ personality, you can provide a Delphi-compatible interface there.
"You" is me or CG? I didn't know that can be done now. If you mean that CG could write it for CB, it wouldn't be enough, because popular projects are mostly compiled with other compilers.
> Time ago I learnt something about "name mangling" thatmade C++ binaries incompatible with everything else.
Name mangling also is specific to a compiler, and therefore incompatible.
At least GCC is open source so the algorithms for NM must be public. Also IIRC Borland had a broad deal with Microsoft that provides access to much technical specifications. Add CB to the list. With something like that, Delphi would be more compatible with C++ than C++ compilers themselves :-)
Most compatible is everthing that goes into an 'extern "C" {...}' section, for which unmangled names are created.
Unfortunately there are a lot of interesting code to interface with that is not there. Mozilla and Qt/KDE are good examples.
.
- References:
- Is KDe coming to Win32
- From: D-Fan
- Re: Is KDe coming to Win32
- From: Andreas Hausladen
- Re: Is KDe coming to Win32
- From: Nico Aragon
- Re: Is KDe coming to Win32
- From: Hans-Peter Diettrich
- Is KDe coming to Win32
- Prev by Date: Re: Attention doomsayers
- Next by Date: Re: Lets think who will like to say delphi is dying?
- Previous by thread: Re: Is KDe coming to Win32
- Next by thread: Re: Is KDe coming to Win32
- Index(es):
Relevant Pages
|