[Pharo-dev] NB and ASMJit questions

2014-02-16 Thread Torsten Bergmann
Hi, I'm trying to mimic the following C/C++ example in NativeBoots to allow random number generation on windows: https://gist.github.com/kbjorklu/6317361 When I combine the flags in Pharo using "|" in the same way like in the first function call of the example: acquireContextExample1 NBF

Re: [Pharo-dev] NB and ASMJit questions

2014-02-17 Thread Igor Stasenko
On 16 February 2014 23:37, Torsten Bergmann wrote: > Hi, > > I'm trying to mimic the following C/C++ example in NativeBoots to allow > random number > generation on windows: > > https://gist.github.com/kbjorklu/6317361 > > When I combine the flags in Pharo using "|" in the same way like in the

Re: [Pharo-dev] NB and ASMJit questions

2014-02-17 Thread Igor Stasenko
Other solution, is to change NBFFIConst and be more forgiving about constants range (so if it sees large positive integer which don't fits into 32-bit signed integer range, assume it is unsigned 32-but integer and use proper immediate type during code generation). I know this could be 'least surpr