Path: utzoo!attcan!uunet!samsung!sdd.hp.com!ucsd!ucbvax!hplabs!otter.hpl.hp.com!otter!pwt From: pwt@otter.hpl.hp.com (Peter Toft) Newsgroups: comp.lang.c++ Subject: Re: calling Zortech C++ methods from assembly Message-ID: <2620017@otter.hpl.hp.com> Date: 20 Aug 90 10:18:26 GMT References: <1990Aug17.142520.5402@aucs.uucp> Organization: Hewlett-Packard Laboratories, Bristol, UK. Lines: 17 C++ function pointers can be passed in to the assembly code, which can then subsequently be called from within the assembly routines. I've done this when calling C++ from C, usually by having a 'setup' routine in the C code that is called from C++ to set up the pointers to the required C++ functions. This gets around having to know the mangled names. =============================================================================== Peter Toft, ARPANET pwt@hplb.hpl.hp.com Hewlett-Packard Laboratories, JANET pwt@lb.hp.co.uk Filton Road, UUCP ...!mcvax!ukc!hplb!pwt Stoke Gifford, CSNET pwt%hplb.csnet@relay.cs.net Bristol. HPdesk Peter TOFT / HPC600 / 05 BS12 6QZ. Phone UK (0272) 799910 ext 24245 United Kingdom. Int'l +44 272 799910 ext 24245