public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Free Compiler
@ 2000-03-28  2:12 vandana  yesoda
  2000-03-28  7:23 ` Mumit Khan
  0 siblings, 1 reply; 3+ messages in thread
From: vandana  yesoda @ 2000-03-28  2:12 UTC (permalink / raw)
  To: cygwin

Hi all,

Is there any free compiler which can understand the name mangling of
MSVC++, so that the C++ objects of MSVC++ and the compiler can be
combined.

Thanks in advance.

Any help in this regard is greatly appreciated.

bye
vandana


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Free Compiler
  2000-03-28  2:12 Free Compiler vandana  yesoda
@ 2000-03-28  7:23 ` Mumit Khan
  0 siblings, 0 replies; 3+ messages in thread
From: Mumit Khan @ 2000-03-28  7:23 UTC (permalink / raw)
  To: vandana yesoda; +Cc: cygwin

"vandana yesoda" <vandana.yesoda@wipro.com> writes:
> Hi all,
> 
> Is there any free compiler which can understand the name mangling of
> MSVC++, so that the C++ objects of MSVC++ and the compiler can be
> combined.
> 

Please read C++ FAQ, or better yet, Stroustrup's book, on why you cannot,
in general, mix-and-match code from different C++ compilers.

To be able to mix C++ code between two compilers, the compilers must use
the same/compatible Application Binary Interface (ABI) that dictates how
the objects are laid out in memory, and other (secondary) issues such
as name mangling and so on.

The only compiler that *may be* C++ ABI compatible with MSVC is 
Metrowerks ( http://www.metrowerks.com/ ); GCC is not, and is unlikely
to be in the near future, ABI compatible with MSVC.

This hopefully also answers the question that you asked in your private
email regarding using dlltool on VC++ C++ symbols.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Free Compiler
@ 2000-03-28  2:25 Bernard Dautrevaux
  0 siblings, 0 replies; 3+ messages in thread
From: Bernard Dautrevaux @ 2000-03-28  2:25 UTC (permalink / raw)
  To: 'vandana yesoda', cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1482 bytes --]

> -----Original Message-----
> From: vandana yesoda [ mailto:vandana.yesoda@wipro.com ]
> Sent: Tuesday, March 28, 2000 12:19 PM
> To: cygwin
> Subject: Free Compiler
> 
> 
> Hi all,
> 
> Is there any free compiler which can understand the name mangling of
> MSVC++, so that the C++ objects of MSVC++ and the compiler can be
> combined.
> 

Regretfully having the same name mangling is by far not enough; it should
also have the same register usage conventions, parameter passing conventions
(these two quite current) but even more: virtual table management is one of
those but don't forget virtual base class management (quite tricky),
multiple inheritance object layout, and finally the new ANSI-C++ features:
template generation, exception handling (in multi-threaded environment),
signature management... (oh sorry I think I was dreaming, or does MSVC++
handle all these really?...)

> Thanks in advance.
> 
> Any help in this regard is greatly appreciated.

You're welcome but I'm afarid the only help I can provide is: no chance :-)

> 
> bye
> vandana
> 

Cheers

		Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-03-28  7:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-28  2:12 Free Compiler vandana  yesoda
2000-03-28  7:23 ` Mumit Khan
2000-03-28  2:25 Bernard Dautrevaux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).