home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13419 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.5 KB  |  44 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!munnari.oz.au!metro!socs.uts.edu.au!utsmips!antony
  3. From: antony@ee.uts.edu.au (Antony Richards)
  4. Subject: Name Mangling (replies)
  5. Organization: University of Technology, Sydney, Australia
  6. Date: Wed, 9 Sep 1992 06:25:59 GMT
  7. Message-ID: <antony.716019959@ee.uts.EDU.AU>
  8. Sender: news@ccsd.uts.EDU.AU (News)
  9. Nntp-Posting-Host: rossi.ee.uts.edu.au
  10. Lines: 32
  11.  
  12. Thankyou to all the resonses I received.  Here is a summary of the responses.
  13.  
  14. >From: jbuck@ohm.Berkeley.EDU (Joe Buck)
  15. >There's a routine provided with gdb-4.6 that you could use.  Of course,
  16. >it's GPL'ed, but if that's a problem for you (becuase you want to "hoard
  17. >your code", as the gnu folks say), you could have one person
  18. >determine the algorithm from the code and write a spec and have another
  19. >person write new code from the spec.
  20.  
  21.  
  22. >From: ENURMI@tnclus.tele.nokia.fi
  23. >From: andy@spec0.electrical-engineering.manchester.ac.uk
  24. >Why don't you grab the source to gcc then you can use the source code for
  25. >the mangling?
  26.  
  27. I have it, but some simple grep's did not reveal anything.
  28.  
  29. >From: jamshid@emx.cc.utexas.edu (Jamshid Afshar)
  30. >Name mangling is not standardized.  You'll have to ask each compiler
  31. >vendor or in gnu.g++.help.
  32.  
  33. I have not doen this yet, because I worked out what I need at the moment,
  34. by looking at the machine code output of the mangled label of a constructor
  35. without any parameters.  These labels are:-
  36. __<strlength(classNmae)><className>
  37.  
  38. I hope that this has been useful.
  39.  
  40. thanks,
  41. antony.
  42.  
  43.  
  44.