prashanthspatil / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

pseudo instructions (such as asr) not supported #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Any chance someone would be willing to get asr working ;P? gcc's non-LLVM
native backend likes to generate it :(. Another one would be ldr r, =value,
but I haven't seen that one get used yet.

I just took a stab at it myself, but it looks like I'd probably have to
pull apart more of as to add support for a single instruction generating
multiple opcodes than I'd have to rip out of gcc to make it not generate it
in the first place (which is probably what I'm going to spend some time on
tomorrow).

Original issue reported on code.google.com by leg...@saurik.com on 21 Oct 2007 at 2:08

GoogleCodeExporter commented 8 years ago
DOH, I meant "adr", not "asr".

Here's some description of these instructions:
http://uw714doc.sco.com/cgi-bin/info2html?(as.info)ARM%2520Opcodes&lang=en

And here's the usage I'm running into:
adr r3, L11+16

Original comment by leg...@saurik.com on 21 Oct 2007 at 2:14

GoogleCodeExporter commented 8 years ago
Ok, I realized that adr was actually pretty simple, as it is actually supposed 
to
generate at most one instruction (adrl can use up to 4, as can that form of ldr 
I
mentioned).

Here's a patch, I hope I got it all right ;P. I had to add another relocation 
mode
for it (pc relative immediate shift with the ability to use the add/sub bits of 
the
opcode to represent negative offsets).

http://test.saurik.com/iphone/odcctools/adr.diff

Original comment by leg...@saurik.com on 22 Oct 2007 at 12:20

GoogleCodeExporter commented 8 years ago

Original comment by Phi...@gmail.com on 26 Oct 2007 at 10:14

GoogleCodeExporter commented 8 years ago
I have committed my patch ;P.

Original comment by saurik on 11 Mar 2008 at 8:48

GoogleCodeExporter commented 8 years ago
what do we do with that patch? 
http://test.saurik.com/iphone/odcctools/adr.diff

Original comment by laz...@gmail.com on 7 Sep 2008 at 2:52

GoogleCodeExporter commented 8 years ago
The patch is already committed... you don't do anything with that patch. Its 
even 
committed to trunk, although trunk is no longer supported by me (you should 
read the 
instructions at http://test.saurik.com/id/4, which supercede this project).

Original comment by saurik on 7 Sep 2008 at 7:03

GoogleCodeExporter commented 8 years ago
i want to download few application which i already have i have newly jailbreak 
2g i-
phone how can i install from i-tunes pls help me as early as possible.

Original comment by write2ha...@gmail.com on 14 Oct 2008 at 5:48

GoogleCodeExporter commented 8 years ago
Any chance someone would be willing to get asr working ;P? gcc's non-LLVM
native backend likes to generate it :(. Another one would be ldr r, =value,
but I haven't seen that one get used yet.

I just took a stab at it myself, but it looks like I'd probably have to
pull apart more of as to add support for a single instruction generating
multiple opcodes than I'd have to rip out of gcc to make it not generate it
in the first place (which is probably what I'm going to spend some time on
tomorrow).

Original comment by moneer...@gmail.com on 11 Dec 2011 at 8:36