delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/02/08:16:57

Date: Tue, 2 May 2000 17:05:46 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Traveler <traveler AT netti DOT fi>
cc: djgpp AT delorie DOT com
Subject: Re: Assembly and C++
In-Reply-To: <8emeld$chk$1@tron.sci.fi>
Message-ID: <Pine.SUN.3.91.1000502170314.23459A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.  Otherwise, you will probably 
need to understand how does the compiler mangle the names of C++ 
identifiers, and the code you write could be broken by any new version of 
the compiler.

Of course, the first question you should ask yourself is whether you at 
all need assembly in the first place ;-).

- Raw text -


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