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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110609/606f45c4/attachment.html>
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 evaluatedfaster ? 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 itis 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 From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Christian Sent: 09 June 2011 11:58 To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110609/9a589814/attachment.html>
Eric Christopher
2011-Jun-09 17:36 UTC
[LLVMdev] bitcode to make math expression parse faster
On Jun 9, 2011, at 3:58 AM, Christian wrote:> 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!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