|
|
01-24-2011
, 07:04 PM
|
|
Posts: 911 |
Thanked: 921 times |
Joined on Jan 2010
@ Amsterdam, Palma de Mallorca
|
#2
|

|
|
01-24-2011
, 07:10 PM
|
|
Posts: 7 |
Thanked: 0 times |
Joined on Jun 2010
|
#3
|
|
|
01-24-2011
, 07:25 PM
|
|
Posts: 1,087 |
Thanked: 1,136 times |
Joined on Aug 2008
@ Spain
|
#4
|
| The Following User Says Thank You to maacruz For This Useful Post: | ||
|
|
01-24-2011
, 07:38 PM
|
|
Posts: 7 |
Thanked: 0 times |
Joined on Jun 2010
|
#5
|
Google search, second result: http://www.coranac.com/tonc/text/asm.htm
|
|
01-24-2011
, 07:47 PM
|
|
Posts: 911 |
Thanked: 921 times |
Joined on Jan 2010
@ Amsterdam, Palma de Mallorca
|
#6
|
Google search, second result: http://www.coranac.com/tonc/text/asm.htm
|
|
01-25-2011
, 11:08 AM
|
|
Posts: 911 |
Thanked: 921 times |
Joined on Jan 2010
@ Amsterdam, Palma de Mallorca
|
#7
|
|
|
01-25-2011
, 08:28 PM
|
|
Posts: 7 |
Thanked: 0 times |
Joined on Jun 2010
|
#8
|

|
|
01-25-2011
, 08:35 PM
|
|
Posts: 7 |
Thanked: 0 times |
Joined on Jun 2010
|
#9
|

#include <stdio.h>
int main()
{
printf("Hello, world!\n");
return 0;
}
(gdb) break main
Breakpoint 1 at 0x838c: file main.c, line 5.
(gdb) run
Starting program: /home/user/a.out
Breakpoint 1, main () at main.c:5
5 printf("Hello, world!\n");
(gdb) disassemble main
Dump of assembler code for function main:
0x00008380 <main+0>: mov r12, sp
0x00008384 <main+4>: push {r11, r12, lr, pc}
0x00008388 <main+8>: sub r11, r12, #4 ; 0x4
0x0000838c <main+12>: ldr r0, [pc, #8] ; 0x839c <main+28>
0x00008390 <main+16>: bl 0x82cc <printf>
0x00008394 <main+20>: mov r0, #0 ; 0x0
0x00008398 <main+24>: ldm sp, {r11, sp, pc}
0x0000839c <main+28>: andeq r8, r0, r8, lsr #8
End of assembler dump.
(gdb) x/s 0x8428
0x8428: "Hello, world!\n"
|
|
01-26-2011
, 04:30 AM
|
|
Posts: 1,087 |
Thanked: 1,136 times |
Joined on Aug 2008
@ Spain
|
#10
|
| The Following User Says Thank You to maacruz For This Useful Post: | ||
![]() |
| Thread Tools | Search this Thread |
|
So my question is: is there some way that the assembly can be outputted as x86 instructions? I do realize that what I'm asking is probably impossible, so a follow-up question would be: What would be a good way to "migrate" from x86 to arm assembly?
Any help is appreciated!