| www.delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:5015 |
| From: | fwk AT pacific DOT net DOT sg (Foo Wan Kin) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Question: Combining C++ and Assembly |
| Date: | Sat, 15 Jun 1996 11:51:24 GMT |
| Organization: | Pacific Internet, Singapore |
| Lines: | 37 |
| Message-ID: | <4pubao$qoi@raffles.technet.sg> |
| NNTP-Posting-Host: | max85ppp9.pacific.net.sg |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hi all,
I am wondering if there is a proper way to define symbol names of
extern functions of a C++ class in the assembly file.
An example in C would be :
test.c
....
extern int test()
....
test1.s
..globl _test
_test:
....
ret
But for a C++ class of the following, how would one define the symbol
name in assembly?
test.cc
....
class test
{
...
public:
int testfunc();
};
I found using nm that if the function is implemented in C++ instead of
assembly, it would be _testfunc__Xtest where X can be any integer. Is
there are better way to determine the symbol name in DJGPP?
Thanks in advance.
Wan Kin.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |