www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/30/16:49:38

Newsgroups: comp.os.msdos.djgpp
From: ma6djh AT bath DOT ac DOT uk (D J Hampson)
Subject: C++ and Assembler
Organization: School of Mathematical Sciences, University of Bath, UK
Message-ID: <E9B6tt.1qy.C.amo@bath.ac.uk>
Mime-Version: 1.0
Date: Sun, 27 Apr 1997 18:17:53 GMT
Lines: 13
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've just realised that when you compile C++ it gives functions different 
names like _MyFunc_Fss (ss standing for short short), rather than just 
_MyFunc. This makes sense for overloading and stuff, but doesn't it mean 
that C++ is incompatible with Assembler built for C?

If I put MyFunc(short,short) in C, and then _MyFunc in Asm, how do I make 
it compile correctly under C and C++? (How do I make C++ look for a 
function called _MyFunc rather than _MyFunc_Fss?)

-- 
David Hampson
e-mail   : ma6djh AT bath DOT ac DOT uk
Uni Page : http://www.bath.ac.uk/~ma6djh/

- Raw text -


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