Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User eloya's Avatar
    Join Date
    Feb 2007
    Posts
    9
    Hi,

    I'm developing an application which doe's lots of arithmetic calculations, and when I tested it on the E61 I had very bad performance in terms of running time.
    I expected that the running time will be correlated to the ratio between the E61 and a PC processor, meaning that since the E61's processor is 206mhz and my PC's processor is 3.0ghz, the running time should be 15 times longer when running the application on the E61. Unfortunately, the running time was about 70 times longer.

    Having these results, I tried a new approach and ran the following piece of code on both machines:

    for(i=0;i<100000000;++i)
    k=23+55;

    I tested it several times. In some of them i&k were ints and in the other floats. I also replaced the adding operation with multiply.

    The conclusion was that it takes between 45-50 times longer for the code to ran on the E61 that on the PC. Now, if I normalize the the results with the processors' ratio, it still takes between 3-4 times slower on the E61.

    When searching for the reason over the internet I found out that the E61's processor is optimized for power consumption (or so) rather than performance.

    I would like to know if my results seem reasonable for someone, or whether someone has a better explanation for that.
    In addition, it would really help to know if it's possible to change some flag or call an API which sets the cpu to performance mode.

    Thanks,
    Ran

  2. #2
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,413
    Processor clock speed between entirely different processor architectures and instruction sets do not correlate at all.

    Your results are most likely resonably for your code (because that's the results what you got).

    If target compiler optimization is not enough, you can always try to optimize further by hand by restructuring the code (unlikely to result in much better results than what the compiler already does), or even writing it in ARM assembler, instead (where depending on your ARM architecture and instruction set knowledge, you may do better or not).

  3. #3
    Nokia Developer Champion hotcheese's Avatar
    Join Date
    Jul 2004
    Posts
    2,015
    Whether you compile for ARM or THUMB probably makes a difference.

  4. #4
    Regular Contributor Starchaser's Avatar
    Join Date
    Mar 2006
    Posts
    81
    Yeah, if I remember correctly you get THUMB code by default (I can't remember if this is true for both the GCCE and the ARM compiler, though) If you want ARMI ( = faster) code you have to add some compiler options...

  5. #5
    Registered User eloya's Avatar
    Join Date
    Feb 2007
    Posts
    9
    Do you/someone know/s of any guide regarding these settings?
    I have tried to set "ALWAYS_BUILD_AS_ARM =1" in the mmp file and re-imported it, and also tried to set directly at the "GCCE UREL Settings" arguments, but I probably don't know the exact syntax/commands.

    Thanks!

Similar Threads

  1. E61 DM Trust Relationship Issues
    By millieaux in forum OMA DM/DS/CP
    Replies: 12
    Last Post: 2010-09-29, 13:22
  2. Jpeg decoding performance on E61
    By jacky_romano in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-11-05, 22:08
  3. 3gp streaming issues
    By njahan in forum Streaming and Video
    Replies: 0
    Last Post: 2006-11-02, 19:05
  4. E61 issues...
    By lycan73 in forum General Development Questions
    Replies: 0
    Last Post: 2006-10-07, 04:31
  5. Symbian OS+nokia 6600+MMC card performance issues
    By mail2gops in forum General Development Questions
    Replies: 1
    Last Post: 2005-12-16, 14:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved