[cfe-dev] Get mangled names C++
plmdvy at gmail.com
Fri Jul 16 06:14:11 PDT 2010
On Sat, Jul 17, 2010 at 12:34 AM, Frank Fuchs <fk.fuchs at googlemail.com> wrote:
>> There are several problems with what you are trying to do,
>> Firstly it will only work with gcc or something that uses exactly the
>> same ABI as clang so for now no MSVC
> Ok but that is not a real concern ... I'm avoiding MSVC anyway.
>> secondly the JIT is supposed to be able to use dlsym to resolve
>> functions at runtime but this only works on non windows,
>> Putting manglings into your code manually is horrible and will only
>> break stuff down the road.
> Ugh this would indead be a showstopper. Does name mangling work differently
> on windows?
> To state it agian I dodn't want to mangle my methods manually!
> I just tested it for one routine to see whether or not it works.
MSVC has a different mangling, gcc uses the same one as all x86-32
you cannot use MSVC C++ libs, you cannot get the JIT code to link
properly with the host app since windows doesnt do dlsym properly or
You really shouldnt be using C++ as a scripting lanugage!
More information about the cfe-dev