This site is no longer active and is available for archival purposes only. Registration and login is disabled.

arming!!!


arming!!!

Postby Jadam » May 4, 2002 @ 6:58pm

User avatar
Jadam
I'm a STAR!
 
Posts: 3245
Joined: Apr 9, 2002 @ 7:24pm
Location: Stony Brook, NY


Postby Kzinti » May 4, 2002 @ 7:10pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


arming!!!

Postby andys » May 4, 2002 @ 8:39pm

andys
pm Member
 
Posts: 230
Joined: Jan 19, 2002 @ 6:19pm
Location: London


Postby Jadam » May 5, 2002 @ 6:10am

would writing in asm increase performance though, for say PocketSNES or a GBA emulator??? ZSNES is written in x86 asm, and runs beautifully on a Pentuim 75. while SNES9x on that same system is slooooooooooooooow.
User avatar
Jadam
I'm a STAR!
 
Posts: 3245
Joined: Apr 9, 2002 @ 7:24pm
Location: Stony Brook, NY


is assembler faster ?

Postby Conan » May 5, 2002 @ 8:03am

Having years of assembler programming experience I can assure you that assembler is faster than C. So long as you understand both the assembly language & the hardware's capabilities you would always get faster code.

At present the resources for C++ on PocketPC are much better than for assembly language. eg: Count how many books you can buy on assembler for PocketPC. It won't take you very long as there are none (If I'm wrong please post title) so using C is easier & to be honest with recent announcements of Xscale & beyond it will not bee too long before 1Ghz PocketPCs are available making the choice of asm less important.

With assembler my approach was always to find those routines which happened again and again & put all the effort into finding the fastest way to shift those bytes around. You need to know how many machine cycles the Op codes take & the best routine to achieve your ends. Thanks to all the fine chaps & ladies ( or just lady as Pam is the only name I've seen on PM ) on PocketMatrix & other boards it's easy to get help in tuning your functions.

Forgetting speed assembly language is not so easy to read so you need to comment absolutely every line but you can do what you like & you don't have to force your brain to understand the machinations of C++ which can make an easy job seem hard at times.

Happy coding
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby Jadam » May 7, 2002 @ 5:46am

umm, you can find tons of stuff at www.arm.com, its more generalized about the arm processors, but the asm is there. Plus if you check out the GBA dev sites, you can learn a lot of ARM. And from what ive read about the GBA it uses a sort of dual mode processor, There is (16-bit)Thumb Mode and (32-bit)Arm mode. i would assume arm asm is arm asm. Plus intel has documents on it.

And its not really programming into the PocketPC API, but coding functions, such as an emulator. emulating the opcodes would be faster in arm asm, would it not??
User avatar
Jadam
I'm a STAR!
 
Posts: 3245
Joined: Apr 9, 2002 @ 7:24pm
Location: Stony Brook, NY


Postby _Refractor » May 7, 2002 @ 9:27am

_Refractor
 


Postby jadam1 » May 7, 2002 @ 7:22pm

jadam1
 


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron