PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Nice Speedup for free...

i don't know if this is simply a know fact, but since i didn't know (and i'm quite active reading here...) i'm gonna tell how to use the new ARM compiler (EVC4 for WinCE 4.2) to speedup EVC (WinCE 3.0) code.

the way the Intel PXA Optimization Guide tells did not work for me, but this very simple steps do work:

*) have EVC3 + EVC4 + PocketPC2003SDK installed

*) rename the directory where all the EVC3 compiler stuff is located in (e.g.: c:\Program Files\Microsoft eMbedded Tools\EVC\WCE300\bin) to save the old files

*) create a new directory with the original name

*) copy all files from the "WinCE4.2 bin dir" (e.g.: c:\Program Files\Microsoft eMbedded C++ 4.0\EVC\wce420\bin) into the new directory

*) copy all files from the renamed original EVC3 directoy WITHOUT overwritting anything into the new directory (so copy over what's not already there)

if everything was done correctly the compiler should now have version 12.20.9615 instead of 12.01.8569 (see by unchecking "suppress startup banner" in the project's c++/customize tab

i experienced a speedup of ~20%, though i'll have to do more detailed tests to verify this, but there is definitelly a significant speedup.

the downside (for those who care or have to care) is that the filesize may grow tremendously. my opengl library dll grew from 90KB to 210KB which is quite a lot i'd say...

nevertheless i can use that speedup...

bye,
DANIEL
goro · 23 Jul 2003, 16:56 UTC — Nice Speedup for free...
Sounds great!

Trying it with the Anthelion code.
20% would be niiiiice.

Will post the results.
goro · 23 Jul 2003, 17:47 UTC — Nice Speedup for free...
goro wrote:
Sounds great!

Trying it with the Anthelion code.
20% would be niiiiice.

Will post the results.


Impressive, it does produce speed up, I would say it gives about +10% to the average FPS in this 3D game.

The interesting thing is when I added the Xscale optimisation flag to the project /QRxscale it had no effect on the performance.

The filesize increase was only from 510k to 540k , that is a great result!

I can advise this solution to everyone.
Thanks Daniel. I owe you a beer :-)

G.
Anyone care to zip up the needed eVC4 files and send them to me?

Dan East
Dan East wrote:
Anyone care to zip up the needed eVC4 files and send them to me?

Dan East

drop me an email address to goro@pdamill.com, so I can send it to you.
Try Dan's Dexplor address (he's logged off of PM now, otherwise I'd let him answer himself :P)
Sergey Chaban · 23 Jul 2003, 19:25 UTC
BTW, copying files is not necessary, see another thread:
http://www.pocketmatrix.com/forums/view ... hp?t=11746

IDE allows to select which compiler to use (and if you uninstall EVC4 it will use older compiler automatically).
Yes, but the simplist option is to not have to install eVC4 in the first place. :)

Thanks Goro!

Dan East
I've found some oddities when trying to change the path in evc3, I move the wce420 bin path to the top, and when I recheck right after I clicked Ok, its either been moved below the wce300 path, or has been removed altogether.

This may be unrelated since I have other saving state problems on my system, like the paths I want the executable to go and such always revert back to Windows/blah, particularily annoying with private dlls, since it works either way.
goro":mje38csf]


Hi Goro. Can I have a copy of the files too? Its a lot faster than downloading that humongous evc4.0 installer. :) Then I'll owe you a beer too.
Well, it downloaded forever, but nothing was attached when the email finally made it through. I don't think the *_M16, *_MP, *_PPC, and *_SH files are needed. That should cut it down to a couple megs.

Dan East
Just wait a minute, I am uploading the zip on my ftp...
Ok, the file is here : http://int13.net/evc4/BIN_new.zip

But for me this new compiler do not give better results than evc3 (slower in fact).
Is this performance increase seen on XScale, ARM or both?

Dan East
Sm!rk wrote:
I've found some oddities when trying to change the path in evc3, I move the wce420 bin path to the top, and when I recheck right after I clicked Ok, its either been moved below the wce300 path, or has been removed altogether.

This may be unrelated since I have other saving state problems on my system, like the paths I want the executable to go and such always revert back to Windows/blah, particularily annoying with private dlls, since it works either way.


I had exactly the same problem, eVc would keep removing my changes for the executables path.

I suspect that like me, you originally put your wce420 folder alongside the wce300, wce200 etc folders in "Microsoft eMbedded Tools/EVC..." ?

For some reason known only to Microsoft, it doesn't "like this" and removes the changes 8O

The solution I found, was simply to put the evc420 folder somewhere else on your system (ie not a sub folder of "Microsoft eMbedded Tools/EVC...".

Works fine and I can now choose which compiler version I wish to use by simply moving evc420 or evc300 to the top of the executables bin path list as required :)

Incidentally, I am able to build and deploy an app for the original Pocket PC 2000 (ipaq 3660), using the new compiler, although I haven't yet tested to see if the code is either faster or leaner. Obviously I can't use any XSCALE optmisations on that platform.

Jasper
I had exactly the same problem, eVc would keep removing my changes for the executables path.


changing the executable path in the settings, is what the intel optimization guide suggests. it did not work on my machine too. that's why i came up with the idea of renaming the directory itself...

DANIEL
drgoldie wrote:
I had exactly the same problem, eVc would keep removing my changes for the executables path.


changing the executable path in the settings, is what the intel optimization guide suggests. it did not work on my machine too. that's why i came up with the idea of renaming the directory itself...

DANIEL


Seemingly Microsoft decided to "protect us" from accidentally changing the compiler version, as it almost ALWAYS removes any change in the executable path settings that point within "Microsoft eMBedded Tools\EVC" :?

Using the method I describe above, I'm using eVC3 with the new eVC4 compiler and ARMASM building for PPC2000 & PPC2002, so I'll if I have any problems. The renaming method also works, but I like to be able to quickly change the build and compare code.

BTW I've just requested the PCA Optimisation Guide from Intel PCA Dev Network, thanks for the info.

Jasper
I tried this with my game, Dr. Pocket, but it didn't noticably improve performance on my Axim. The new executable was only 1k larger than the old one, so I guess it's essentially as optimized as it can be anyway.

-John