Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!proto!joe From: joe@proto.COM (Joe Huffman) Newsgroups: comp.lang.c++ Subject: Re: calling Zortech C++ methods from assembly Summary: I don't think you want to do this... Message-ID: <1394@proto.COM> Date: 18 Aug 90 04:57:46 GMT References: <1990Aug17.142520.5402@aucs.uucp> Organization: Prototronics; Sandpoint, Idaho Lines: 28 In article <1990Aug17.142520.5402@aucs.uucp>, 880716a@aucs.uucp (Dave Astels) writes: > > I looked through the assembly sections of the compiler manual (2.06) > but couldn't find the required info. It only discussed calling assembly > from C++ (with C linkage). What I need is the information required to > invoke C++ methods from assembly. The reason it isn't documented is because it can be a real nightmare. The names are mangled for type safe linking, there are hidden parameters ('this') and virtual functions are really function pointers (that may change their location between compiler versions). Basically, don't do it. If you REALLY want to do it, call the function from a C++ function, compile with -gl (line numbers turned on), then run OBJTOASM on the resultant .OBJ file. This will generate the assembly code from the object code the compiler generated. This will show you the mangled function name, how it's done with the current version of the compiler and with that particular function. --- Zortech mailing list: send email to 'ztc-list-request@uunet.uu.net' with: Add: your-use-name@your-site In the body of the message. -- joe@proto.com uunet!proto!joe FAX: 208-263-8772