delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/02/11:20:07

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Assembly and C++
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <c7ptgsg5l0dsdudemt62n9k46g9a7hvg84@4ax.com>
References: <8emeld$chk$1 AT tron DOT sci DOT fi> <Pine DOT SUN DOT 3 DOT 91 DOT 1000502170314 DOT 23459A-100000 AT is>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
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
<eliz AT is DOT elta DOT co DOT il> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019