From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Assembly and C++ Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8emeld$chk$1 AT tron DOT sci DOT fi> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 32 X-Trace: /bQNuboCEtu8IRmkTOdyXJzpwS02R4sG8yUtyX9XKmgiZf86Q9+mwYwduTLeFxNlo0hsSdFgZmWz!cnyQQMXxwskV/PMQjqkPdG6E4AlN0ykznU7XZqMZlTLsRubQsA4/Qb+IQx13xga8mz5CcAVAmcVp!4wJW X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 02 May 2000 14:29:04 GMT Distribution: world Date: Tue, 02 May 2000 14:29:04 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 2 May 2000 17:05:46 +0300 (IDT), Eli Zaretskii wrote: >On Tue, 2 May 2000, Traveler wrote: > >> How can I make class member functions with NASM or GAS ? > >I think it is much easier to use inline assembly, or to call a >function declared extern "C" from a C++ wrapper. But you lose all of C++'s cool OOP features. Is there a way to link the function so that the function is private to the wrapper method? Otherwise, _any_ method in _any_ class can call it. >Otherwise, you will probably need to understand how does the >compiler mangle the names of C++ identifiers Is this in any documentation? >and the code you write could be broken by any new version of >the compiler. Shouldn't the mangling method be part of the object file format spec, like the initial underline is in COFF? -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/