Displaying 19 results from an estimated 19 matches for "get5".
Did you mean:
get
2007 Jun 07
2
[LLVMdev] How to call native functions from bytecode run in JIT?
...es an LLVM execution engine and adds
modules and functions
to it on the fly. I need to call some native functions of my program
from bytecode functions which causes some troubles as it appears not
to be documented. My test scenario works like the following:
I have a simple function "int get5()" which I want to call from a
bytecode function "int callget5()" which is generated at runtime. I
register the native function "get5" using addGlobalMapping in the
execution engine. I then try to call it using runFunction. This works
under OS X, but fails in Linux...
2007 Jun 10
0
[LLVMdev] How to call native functions from bytecode run in JIT?
...> modules and functions
> to it on the fly. I need to call some native functions of my
> program from bytecode functions which causes some troubles as it
> appears not to be documented. My test scenario works like the
> following:
>
> I have a simple function "int get5()" which I want to call from a
> bytecode function "int callget5()" which is generated at runtime. I
> register the native function "get5" using addGlobalMapping in the
> execution engine. I then try to call it using runFunction. This
> works under OS X,...
2007 Jun 13
5
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi,
I was able to try this on linux again. Unfortunately it doesn't work
at all (neither using runFunction nor a CallInst). It simply says
function called get5 not known. Calling printf the same way works,
though. On linux the function is exported as "get5" from the
executable while it is called "_get5" on OS X. I could not spot any
other differences.. any thoughts?
greetings,
Jan
On 12. Jun 2007, at 23:08, Jan Rehders wrote:...
2007 Jun 12
3
[LLVMdev] How to call native functions from bytecode run in JIT?
On Tue, 12 Jun 2007, Jan Rehders wrote:
>> Jan, how are you doing this? Are you creating an external LLVM
>> Function object named "get5", then using EE::addGlobalMapping? If
>> 'get5' exists in the address space, why not just let the JIT resolve it
>> (which will then create the stub)?
>
> Yes. I create a Function with matching signature, calling conventions
> and external linkage which I pass t...
2007 Jun 11
3
[LLVMdev] How to call native functions from bytecode run in JIT?
...ough, so I can't really say for sure what goes
> wrong here.
The LLVM PPC JIT certainly does produce these stubs. The
PPCJITInfo::emitFunctionStub method is the one that actually creates them
:)
Jan, how are you doing this? Are you creating an external LLVM Function
object named "get5", then using EE::addGlobalMapping? If 'get5' exists in
the address space, why not just let the JIT resolve it (which will then
create the stub)?
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
2005 Mar 11
2
Calculating lengths of runs of 0 or 1 sequences in meteorological data
Dear List Members,
I need some help about programming in S language. My
problem is as follows:
I have meteorological data (about rainfall measurement
each day from 1989-2002), say like
http://www.angelfire.com/ab5/get5/data.rainfall.txt
or http://www.angelfire.com/ab5/get5/R.rainfall.txt
in a sequence of 0(denoting dry day)'s and 1(denoting
wet day)'s. I want to construct a frequency
distribution table of various lengths
(1,2,3,4,5,6,7,8,9,or more) of observed wet spells
(number of successive 1's) an...
2007 Jun 14
0
[LLVMdev] How to call native functions from bytecode run in JIT?
...t I did. And don't
forget to use the C++ name if you compile with C++.
Cheers,
Nicolas
Jan Rehders wrote:
> Hi,
>
> I was able to try this on linux again. Unfortunately it doesn't work
> at all (neither using runFunction nor a CallInst). It simply says
> function called get5 not known. Calling printf the same way works,
> though. On linux the function is exported as "get5" from the
> executable while it is called "_get5" on OS X. I could not spot any
> other differences.. any thoughts?
>
> greetings,
> Jan
>
> On 12. Ju...
2007 Jun 12
0
[LLVMdev] How to call native functions from bytecode run in JIT?
...he same name as the native function
> and the
> JIT should find it an do the right thing. This is how it finds
> printf and
> a variety of other things. You don't need to call addGlobalMapping at
> all.
Looking at the output of "nm codegen1" I realized that "get5" was a C+
+ function whose name was mangled to "__Z4get5v". Surrounding it by
extern "C" helped a lot :) Now the function is found by the JIT and I
can call it using EE->runFunction als well as using a CallInst.
> Does this work?
However, one strange effet rema...
2007 Jun 12
0
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi,
> Jan, how are you doing this? Are you creating an external LLVM
> Function
> object named "get5", then using EE::addGlobalMapping? If 'get5'
> exists in
> the address space, why not just let the JIT resolve it (which will
> then
> create the stub)?
Yes. I create a Function with matching signature, calling conventions
and external linkage which I pass together...
2007 Jun 27
2
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi,
attached is a small testcase I did. It builds two LLVM functions
which both call two native functions get5 and get6. The native
functions are in the exe and in the dll. On OS X it works like a
charm. On Linux none of the two functions can be called.
Maybe someone can try them or have a look at it to see if there is
something obviously wrong
greetings,
Jan
-------------- next part -------------...
2004 Apr 14
4
Non-Linear Regression Problem
...ic "Self-starting non-linear regressions"
using negexp.SSival - but i can not solve my hypothetical problem using
that - my problem is :
Y = EXP(-(THETA * t)) with data below for estimating THETA:
t Y
1 0.80
4 0.45
16 0.04
Whatever i could do, is in http://www.angelfire.com/ab5/get5/nonlinear.PDF
Any response / help / comment / suggestion / idea / web-link / replies will
be greatly appreciated.
Thanks in advance for your time.
_______________________
Mohammad Ehsanul Karim <wildscop at yahoo.com>
Institute of Statistical Research and Training
University of Dhaka, Dh...
2007 Jun 11
0
[LLVMdev] How to call native functions from bytecode run in JIT?
On 11 Jun 2007, at 22:35, Jan Rehders wrote:
> It's inside PPCJITInfo::relocate but unfortunately I could not figure
> out anything from the source. It looks like it's calculating new
> addresses for functions which does not make much sense for a native
> function, at all
On the PPC, unconditional branches are limited to 24 bit signed
displacements. When you call a function
2007 Jun 11
2
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi,
> I know nothing about this, but the failed assertion suggests the PPC
> code generator can't cope with a constant that's bigger than
> expected at
> that point. Have you taken a look at PPCJITInfo.cpp:382? It may shed
> some light.
It's inside PPCJITInfo::relocate but unfortunately I could not figure
out anything from the source. It looks like it's
2007 Jun 29
0
[LLVMdev] How to call native functions from bytecode run in JIT?
...e());
This will force an indirect call, and won't use the jump-size limitation
of the bl instruction.
Let me know if this helps.
Cheers,
Nicolas
Jan Rehders wrote:
> Hi,
>
> attached is a small testcase I did. It builds two LLVM functions which
> both call two native functions get5 and get6. The native functions are
> in the exe and in the dll. On OS X it works like a charm. On Linux
> none of the two functions can be called.
>
> Maybe someone can try them or have a look at it to see if there is
> something obviously wrong
>
> greetings,
> Jan
>...
2004 Apr 16
5
Non-Linear Regression (Cobb-Douglas and C.E.S)
...values are not good enough: How can
i make a grid search?
2. How can i estimate C.E.S Production Function [ Y = GAMA *
((DELTA*K^(-BETA)) + ((1-DELTA)*L^(-BETA)))^(-PHI/BETA) ] using the same
data? How to get the initial value?
N.B.: The data file is available at http://www.angelfire.com/ab5/get5/klein.txt
Any response / help / comment / suggestion / idea / web-link / replies will
be greatly appreciated.
Thanks in advance for your time.
_______________________
Mohammad Ehsanul Karim <wildscop at yahoo.com>
Institute of Statistical Research and Training
University of Dhaka, Dhaka-...
2007 Jun 11
2
[LLVMdev] How to call native functions from bytecode run in JIT?
...d assertion `ResultPtr >= -(1 << 23) &&
ResultPtr < (1 << 23) && "Relocation out of range!"'
> I am wondering if there is some name mangling issue?
Not that I'm aware of. It appears to find the function using module-
>getFunction("get5")
Is there really nobody here who knows how to properly register native
functions of the application to the execution engine?
2005 Jun 08
1
Fitting Theoretical Distributions to Daily Rainfall Data
Dear List Members,
I need a bit help about fitting some theoretical
distributions (such as geometric, exponential,
lognormal or weibull distribution) to the following
*dry spell*, *wet spell*, *cycles (Wet-Dry or
Dry-Wet)* from my meteorological (daily rainfall) data
http://www.angelfire.com/ab5/get5/R.rainfall.txt only
for rainy seasen (july - september) of 14 years only:
dryspell<-c(1,1,4,1,1,4,2,2,3,4,1,2,1,1,1,3,1,3,
2,3,1,2,3,3,2,2,6,2,1,1,3,1,2,1,4,4,1,1,2,1,1,2,
2,4,1,1,1,3,4,1,7,1,3,2,5,1,3,1,1,3,4,8,4,3,1,1,
1,2,3,1,1,2,1,1,2,2,2,3,3,13,13,7,1,1,1,1,7,3,2,
1,3,1,1,2,5,1,2,1,3,1,1,2...
2007 Jun 30
1
[LLVMdev] How to call native functions from bytecode run in JIT?
...ize
> limitation
> of the bl instruction.
>
> Let me know if this helps.
>
> Cheers,
> Nicolas
>
> Jan Rehders wrote:
>> Hi,
>>
>> attached is a small testcase I did. It builds two LLVM functions
>> which
>> both call two native functions get5 and get6. The native functions
>> are
>> in the exe and in the dll. On OS X it works like a charm. On Linux
>> none of the two functions can be called.
>>
>> Maybe someone can try them or have a look at it to see if there is
>> something obviously wrong
>>...
2005 Jun 22
2
r programming help
...[19]*DRY[11]+WET[20]*DRY[10]+WET[21]*DRY[9]+WET[22]*DRY[8]+WET[23]*DRY[7]+WET[24]*DRY[6]+WET[25]*DRY[5]+WET[26]*DRY[4]+WET[27]*DRY[3]+WET[28]*DRY[2]+WET[29]*DRY[1]
)
Thank you for your time.
PS: if the above formula can not be seen correctly,
one can see details at
http://www.angelfire.com/ab5/get5/alt.ren.txt
----------------------------------
Mohammad Ehsanul Karim
Web: http://snipurl.com/ehsan
ISRT, University of Dhaka, BD