| Zeile 36: | Zeile 36: | ||
pi@raspberrypi:~ $ uname -m | pi@raspberrypi:~ $ uname -m | ||
armv6l | armv6l | ||
| + | Die Main-Routine eines C-Programms, welches nur mittels printf hello world ausgibt, sieht so aus: | ||
| + | <pre> | ||
| + | 00010408 <main>: | ||
| + | 10408: e92d4800 push {fp, lr} | ||
| + | 1040c: e28db004 add fp, sp, #4 | ||
| + | 10410: e59f000c ldr r0, [pc, #12] ; 10424 <main+0x1c> | ||
| + | 10414: ebffffb3 bl 102e8 <printf@plt> | ||
| + | 10418: e3a03000 mov r3, #0 | ||
| + | 1041c: e1a00003 mov r0, r3 | ||
| + | 10420: e8bd8800 pop {fp, pc} | ||
| + | 10424: 00010498 .word 0x00010498 | ||
| + | </pre> | ||
| + | Man erkennt die feste Befehlsbreite - jeder Maschinensprachenbefehl ist 4 Bytes lang. | ||
== Weblinks == | == Weblinks == | ||