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

Assembly On iPAQ


Re: Assembly On iPAQ

Postby Digby » Dec 12, 2001 @ 1:51pm

I've done quite a bit of ARM assembly language programming.  If you have questions that the ARM reference docs can't answer, feel free to ask me.<br><br>
Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Re: Assembly On iPAQ

Postby Phantom » Dec 13, 2001 @ 5:57am

Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Re: Assembly On iPAQ

Postby Dan East » Dec 13, 2001 @ 8:55am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: Assembly On iPAQ

Postby Digby » Dec 13, 2001 @ 12:40pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Re: Assembly On iPAQ

Postby Dan East » Dec 13, 2001 @ 1:26pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: Assembly On iPAQ

Postby Zensunni » Dec 13, 2001 @ 2:20pm

when i read about the dangers of drinking, i stopped reading...
Zensunni
pm Member
 
Posts: 55
Joined: Dec 12, 2001 @ 10:26pm


Re: Assembly On iPAQ

Postby Digby » Dec 13, 2001 @ 5:30pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Re: Assembly On iPAQ

Postby Zensunni » Dec 13, 2001 @ 6:36pm

when i read about the dangers of drinking, i stopped reading...
Zensunni
pm Member
 
Posts: 55
Joined: Dec 12, 2001 @ 10:26pm


Re: Assembly On iPAQ

Postby Mole » Dec 19, 2001 @ 8:11am

Answering my own question<br>The eVC compiler does not optomise for shifts on source rgisters when compiling ARM code<br>a=b+(c<<8)<br>compiles to:<br>mov r1, r2, lsl #8<br>add r3, r0, r1<br><br>As opposed to:<br>add r3,r0,r2 lsl #8<br>hmmm bad Microsoft :(<br>BTW<br>it would not be too difficult to go through by hand and correct this by hand for anyone doing an amount of fixed point maths thats using alot of shifting.<br>The same is true for the indexd addressing on LDR/STR<br>LDR r0,[r2,r3 lsr #2]<br>omg im sad but i just love the code.<br>
Must go faster
Mole
pm Member
 
Posts: 10
Joined: Dec 11, 2001 @ 10:36am


Re: Assembly On iPAQ

Postby Digby » Dec 19, 2001 @ 5:16pm

How would you go about correcting this by hand?  Since the ARM compiler shipped with eVC doesn't support inline assembly language, you'll have to write a function to do this in a separate .asm file.  The function overhead would negate any win you'll get.  The only way to get the speed up you're talking about is to code the entire function that uses fixed-point in assembly language.  Or perhaps you could munge the .obj (yikes)?<br>
Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Re: Assembly On iPAQ

Postby simonjacobs » Dec 19, 2001 @ 6:42pm

But couldnt you compile your c/c++ to asm, edit the asm file, then compile to machine code?<br><br>Of course, it is more effort to do that :)<br><br>It depends how much speed you want I suppose.<br>
User avatar
simonjacobs
pm Insider
 
Posts: 311
Joined: Nov 27, 2001 @ 4:51pm
Location: London, UK


Re: Assembly On iPAQ

Postby Digby » Dec 19, 2001 @ 8:05pm

Simon,<br><br>Certainly you could do that.  However, everytime you changed anything in the C version of that function you'd have to go back and do it again.  That's not something I'd want to do.<br><br>
Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Re: Assembly On iPAQ

Postby simonjacobs » Dec 19, 2001 @ 8:32pm

Good point. I suppose you could do assembly optimization as the last stage of the project but it's hardly ideal either way. An inline assembler would come in handy!<br>
User avatar
simonjacobs
pm Insider
 
Posts: 311
Joined: Nov 27, 2001 @ 4:51pm
Location: London, UK


Re: Assembly On iPAQ

Postby gruk » Dec 19, 2001 @ 9:03pm

<br>btw. of this discussion, I have question..<br>How looks case of branch delay slots on StrongARM? Do I have to care about that when coding in assembler, like on MIPS or Sparc?<br><br>tia.<br>
gruk
 


Re: Assembly On iPAQ

Postby Digby » Dec 19, 2001 @ 9:45pm

No.
Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


PreviousNext

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