[LLVMdev] runtime library for jitted code

Victor Zverovich victor at optirisk-systems.com
Tue Jun 16 14:00:12 PDT 2009


Unfortunately I have no idea how to to properly declare such prototype in
LLVM so that it was compatible with the code generated by Visual C++. So I
am considering only simple cases (numeric types and pointers).

Victor

2009/6/16 Óscar Fuentes <ofv at wanadoo.es>

> Victor Zverovich <victor.zverovich at googlemail.com> writes:
>
> > The question about the name mangling gave me an idea that it can be used
> to
> > automate registration of DLL functions. Instead of manually creating
> > Function objects specifying a return type and argument types which is
> > error-prone and time-consuming one can get a list of functions exported
> from
> > a DLL using Windows API, demangle each name and construct a Function
> object
> > from it. Is there any support for Visual C++ style (de)mangling in LLVM
> or
> > related project? In any case I think it won't be difficult for me to
> write
> > such a converter from mangled names to LLVM function declarations.
>
> As long as the functions' arguments an return types are simple enough,
> it seems doable. But have you something in mind for cases such as
>
> AClass foo(SomeOtherClass other);
>
> ?
>
> --
> Óscar
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090616/84f75d87/attachment.html>


More information about the llvm-dev mailing list