bitcode to make math expression parse faster

Hi,

I want to compile a mathematical expression.
So shall be faster.
It should be as fast as it would be hard coded.
With the parser i use it is too slow.

Do you know how i can compile in time, so an expression is evaluated
faster ?

I develop for iphone!

Thanks a lot !

Chris

Hi Christian,

I develop for iphone!

As such you are limited to what the iOS SDK provides, which as far as I know is Objective-C, with a dedicated compiler. You cannot, as far as I am aware, use LLVM yourself on that platform.

Do you know how i can compile in time, so an expression is evaluated faster ?

Unfortunately (again, as far as I know not being an iPhone developer) just-in-time compilation is banned by the terms of service.

I want to compile a mathematical expression … with the parser I use it is too slow.

So Objective-C does compile integer and floating point arithmetic down to pure machine code and performs standard optimisations on it. If you’re using Objective-C it should already be compiled. If you’re not, then Objective-C is probably your best choice given your platform.

Cheers,

James

iOS doesn't support Just-In-Time compilation, however, there are many
techniques that you can use to speed up evaluation of mathematical
expressions.

Could you be more specific as to what you're trying to do and what
results you're seeing?

-eric