Displaying 5 results from an estimated 5 matches for "__gmpz_init_set_ui".
2008 Jun 18
4
[LLVMdev] Ответ: using dynamic libraries from bytecode?
...ct] ; <[1 x
%struct.__mpz_struct]*> [#uses=4]
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
%x1 = bitcast [1 x %struct.__mpz_struct]* %x to
%struct.__mpz_struct* ; <%struct.__mpz_struct*> [#uses=1]
call void @__gmpz_init_set_ui( %struct.__mpz_struct* %x1, i32
111111 ) nounwind
%x2 = bitcast [1 x %struct.__mpz_struct]* %x to
%struct.__mpz_struct* ; <%struct.__mpz_struct*> [#uses=1]
%x3 = bitcast [1 x %struct.__mpz_struct]* %x to
%struct.__mpz_struct* ; <%struct.__mpz_struct*>...
2008 Jun 18
0
[LLVMdev] using dynamic libraries from bytecode?
On Jun 18, 2008, at 6:48 AM, Yaroslav Kavenchuk wrote:
> Is it possible to use dynamic library (*.so *.dll) from bytecode?
> If "yes" - how?
dlopen? That's be one way. Also, most systems have shared libraries
in /usr/lib and these routines are meant to be linked against and
used. For example, on darwin, there sinf is resolved from a shared
library, you declare it and
2008 Jun 18
2
[LLVMdev] using dynamic libraries from bytecode?
Is it possible to use dynamic library (*.so *.dll) from bytecode?
If "yes" - how?
--
WBR, Yaroslav Kavenchuk.
2008 Jun 19
0
[LLVMdev] Ответ: using dynamic libraries from bytecode?
...routine from a
>> dynamic library.
>>
>
> Thanks! But... small example (mingw):
> $ llvm-gcc.exe -I/mingw/include gcd_ui.c -L/mingw/lib -lgmp -o
> gcd_ui.exe
>
> $ ./gcd_ui.exe
> All works!
>
> $ lli gcd_ui.bc
> ERROR: Program used external function '__gmpz_init_set_ui' which could
> not be resolved!
>
> This application has requested the Runtime to terminate it in an
> unusual way.
> Please contact the application's support team for more information.
Try: lli -load /path/to/foo.so gcd_ui.bc
Replace ".so" with ".dylib&quo...
2008 Jun 19
1
[LLVMdev] Ответ: using dynamic libraries from bytecode?
Chris Lattner wrote:
>> $ lli gcd_ui.bc
>> ERROR: Program used external function '__gmpz_init_set_ui' which could
>> not be resolved!
>>
>> This application has requested the Runtime to terminate it in an
>> unusual way.
>> Please contact the application's support team for more information.
>
> Try: lli -load /path/to/foo.so gcd_ui.bc
>
> Repla...