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

Challenge for the ARM Assembler gurus!


Postby kornalius » Jan 26, 2004 @ 6:41pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby picard » Jan 26, 2004 @ 7:15pm

i used normal c debugging for my arm emulator (c version). first with very simple programs (hello world, etc) compiled by me (with assembly list files). later with complex programs like pocketmvp, pockettv.

i tested the dynamic code mostly on my ppc arm device. sometimes i used my emulator too, but it's much harder to track anything. mainly i used the emulator as an error indicator (after i got a working version and made some changes), if something went wrong and couldn't find the problem in the emulator easily, i used the arm device.
User avatar
picard
pm Member
 
Posts: 115
Joined: Aug 21, 2003 @ 4:30pm
Location: BetaPlayer


Postby kornalius » Jan 26, 2004 @ 7:51pm

Ok I see. Well I guess I'll keep using my device. I find it slow but hey, better than nothing! :wink:

Thanks again!
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Jan 26, 2004 @ 8:22pm

Btw, how can I use your emu.h file from within my project? I did Reset, AttachThread but I can't compile. I included "emu.h" into my project from the emu directory. But I get undeclared identifiers for all of these functions.

I did this:

#include "emu\emu.h"

Should I put all of your files in the root directory of my project for it to work or can I leave them in the emu directory and tell the compiler to use this path for all of the emu.h required files?
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby picard » Jan 26, 2004 @ 9:21pm

sorry i included only a vc6 project file (not embedded). so you should add the sources to your project (not the include directory, but to the project tree) or a nicer solution is to create a new static or dynamic library project and add all the files in the emu directory and compile. then set 'project/dependencies' so your project can include the generated emu.lib automaticly.
User avatar
picard
pm Member
 
Posts: 115
Joined: Aug 21, 2003 @ 4:30pm
Location: BetaPlayer


Postby kornalius » Jan 26, 2004 @ 10:15pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby picard » Jan 26, 2004 @ 10:55pm

User avatar
picard
pm Member
 
Posts: 115
Joined: Aug 21, 2003 @ 4:30pm
Location: BetaPlayer


Postby kornalius » Jan 26, 2004 @ 11:22pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby picard » Jan 26, 2004 @ 11:46pm

User avatar
picard
pm Member
 
Posts: 115
Joined: Aug 21, 2003 @ 4:30pm
Location: BetaPlayer


Postby kornalius » Jan 27, 2004 @ 2:36am

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Jan 27, 2004 @ 1:47pm

I finally was able to compile my project, just by inserting the .h and .cpp files into it.

Sorry for all the trouble. :(
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby picard » Jan 27, 2004 @ 3:17pm

User avatar
picard
pm Member
 
Posts: 115
Joined: Aug 21, 2003 @ 4:30pm
Location: BetaPlayer


Postby kornalius » Jan 27, 2004 @ 3:27pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby refractor » Jan 27, 2004 @ 4:53pm

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


Postby kornalius » Jan 27, 2004 @ 4:57pm

I will try that, but what is the best way to get the bytecodes from an assembly line? Can I just use __asm { ldr pc, [sp], #4} in C and then check the result in the .cod file?

Edit:: Damn, __asm is not supported under ARM/PPC 2003 projects.
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


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