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

It's ASM CODING TIME!!!


It's ASM CODING TIME!!!

Postby R0B » Jun 22, 2002 @ 5:56pm

"1011001010 NNNNNNNNNNOOOOOOOOOOOOOOOO!!!!!!" -Bender
User avatar
R0B
got muffins?
 
Posts: 1894
Joined: Jun 22, 2001 @ 12:04pm


Postby fused » Jun 22, 2002 @ 6:31pm

fused
 


Postby Robotbeat » Jun 23, 2002 @ 4:19am

Die, Palm, Die. If that offended you, then get rid of your Palm OS device.
User avatar
Robotbeat
pm Member
 
Posts: 827
Joined: Jan 28, 2001 @ 4:52pm
Location: In your mind...


Postby refractor » Jun 24, 2002 @ 10:06am

Note: I'd stand much more of a chance of helping if somebody would PLEASE fix the damn code tags to use SPAN and not DIVs. Reading code at one symbol per line is pretty useless. :(


fused:

It doesn't have /large/ issues with pipeline stalls, but your code there does seem to use the same target and destinations registers all over the place.

In general:
don't use the result of an instruction in the next instruction
(or maybe the next two - look at the StrongARM datasheet - the result cycle counts are in there) - you're stalling the pipeline all over the place. For the same reason, don't use a target register as an address register (it might be alright, actually, but it's still not nice):
LDR R0,[R0]

DO use the conditional execution - "skipped" instructions will lose you only one cycle, IIRC, no matter what they are. Having said that, branches on the StrongARM are pretty fast.


ROB:
ARMv4s have a 32x32 bit multiply /instruction/. UMULL. If only you could embed assembler in eVC++, eh.
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby Jadam » Jun 24, 2002 @ 2:33pm

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


Postby fused » Jun 24, 2002 @ 9:26pm

fused
 


Postby refractor » Jun 24, 2002 @ 10:14pm

Not for ARM, no. Only full functions only can be linked in.

You can't inline ARM assembler within a C function, for example, but you can compile the entire function from an assembler (or compile a C function to ARM and tweak the assembler source and keep it as assembler).
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby Jadam » Jun 26, 2002 @ 7:57am

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


Postby angedelamort » Jun 26, 2002 @ 2:30pm

User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Postby R0B » Jun 26, 2002 @ 4:08pm

"1011001010 NNNNNNNNNNOOOOOOOOOOOOOOOO!!!!!!" -Bender
User avatar
R0B
got muffins?
 
Posts: 1894
Joined: Jun 22, 2001 @ 12:04pm


Postby Robotbeat » Jun 26, 2002 @ 4:11pm

Die, Palm, Die. If that offended you, then get rid of your Palm OS device.
User avatar
Robotbeat
pm Member
 
Posts: 827
Joined: Jan 28, 2001 @ 4:52pm
Location: In your mind...


Postby James S » Jun 26, 2002 @ 9:48pm

Oooh, ooh! I'm good at math! I'm good at math! I can help too!
<img src="http://home.comcast.net/~sonne/james/tag.gif">
James S
pm Insider
 
Posts: 17064
Joined: Jan 12, 2002 @ 2:33pm
Location: Lexington, KY


Postby refractor » Jun 26, 2002 @ 10:08pm

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby Guest » Jun 27, 2002 @ 9:20pm

Guest
 


Postby Robotbeat » Jun 27, 2002 @ 10:09pm

Die, Palm, Die. If that offended you, then get rid of your Palm OS device.
User avatar
Robotbeat
pm Member
 
Posts: 827
Joined: Jan 28, 2001 @ 4:52pm
Location: In your mind...


Next

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