dibyendumajumdar / dmr_c

dmr_C is a C parser and JIT compiler with LLVM, Eclipse OMR and NanoJIT backends
Other
52 stars 2 forks source link

NanoJIT backend: call NJX api to get a reference to function parameters #27

Open dibyendumajumdar opened 7 years ago

dibyendumajumdar commented 7 years ago

In JITed function the parameters appear in registers of 64-bit size. So if an int is needed then it needs a conversion from quad to int. This should be done whenever the parameter is needed rather than at the start, as then hopefully there will not be issues related to liveness