![]() |
2011-01-24
, 23:04
|
Posts: 1,048 |
Thanked: 1,127 times |
Joined on Jan 2010
@ Amsterdam
|
#2
|
![]() |
2011-01-24
, 23:10
|
Posts: 7 |
Thanked: 0 times |
Joined on Jun 2010
|
#3
|
![]() |
2011-01-24
, 23:25
|
Posts: 1,101 |
Thanked: 1,185 times |
Joined on Aug 2008
@ Spain
|
#4
|
The Following User Says Thank You to maacruz For This Useful Post: | ||
![]() |
2011-01-24
, 23:38
|
Posts: 7 |
Thanked: 0 times |
Joined on Jun 2010
|
#5
|
Google search, second result: http://www.coranac.com/tonc/text/asm.htm
![]() |
2011-01-24
, 23:47
|
Posts: 1,048 |
Thanked: 1,127 times |
Joined on Jan 2010
@ Amsterdam
|
#6
|
Google search, second result: http://www.coranac.com/tonc/text/asm.htm
![]() |
2011-01-25
, 15:08
|
Posts: 1,048 |
Thanked: 1,127 times |
Joined on Jan 2010
@ Amsterdam
|
#7
|
![]() |
2011-01-26
, 00:28
|
Posts: 7 |
Thanked: 0 times |
Joined on Jun 2010
|
#8
|
![]() |
2011-01-26
, 00:35
|
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"
![]() |
2011-01-26
, 08:30
|
Posts: 1,101 |
Thanked: 1,185 times |
Joined on Aug 2008
@ Spain
|
#10
|
The Following User Says Thank You to maacruz For This Useful Post: | ||
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!