File: README

package info (click to toggle)
gxemul 0.7.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,172 kB
  • sloc: ansic: 111,086; sh: 972; exp: 354; makefile: 118
file content (71 lines) | stat: -rw-r--r-- 1,952 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Replace the compiler target name with the name on your system.


Alpha
-----
alpha-unknown-elf-gcc -I../../src/include/testmachine -g hello.c -c -o hello_alpha.o
alpha-unknown-elf-ld -Ttext 0x10000 -e f hello_alpha.o -o hello_alpha
file hello_alpha
../../gxemul -E testalpha hello_alpha


ARM
---
arm-unknown-elf-gcc -I../../src/include/testmachine -g hello.c -c -o hello_arm.o
arm-unknown-elf-ld -e f hello_arm.o -o hello_arm
file hello_arm
../../gxemul -E testarm hello_arm


MIPS (64-bit)
-------------
mips64-unknown-elf-gcc -I../../src/include/testmachine -g -DMIPS hello.c -mips4 -mabi=64 -c -o hello_mips.o
mips64-unknown-elf-ld -Ttext 0xa800000000030000 -e f hello_mips.o -o hello_mips --oformat=elf64-bigmips
file hello_mips
../../gxemul -E testmips hello_mips


MIPS (32-bit)
-------------
mips64-unknown-elf-gcc -I../../src/include/testmachine -g -DMIPS hello.c -mips1 -mabi=32 -c -o hello_mips32.o
mips64-unknown-elf-ld -Ttext 0x80030000 -e f hello_mips32.o -o hello_mips32
file hello_mips32
../../gxemul -E testmips -C R3000 hello_mips32


PPC (64-bit)
------------
TODO


PPC (32-bit)
------------
ppc-unknown-elf-gcc -I../../src/include/testmachine -g hello.c -c -o hello_ppc.o
ppc-unknown-elf-ld -e f hello_ppc.o -o hello_ppc
file hello_ppc
../../gxemul -E testppc -C PPC750 hello_ppc


RISCV (64-bit)
--------------
riscv64-unknown-elf-gcc -I../../src/include/testmachine -g hello.c -c -o hello_riscv.o
riscv64-unknown-elf-ld -e f hello_riscv.o -o hello_riscv   
file hello_riscv


SH (32-bit)
-----------

sh64-superh-elf-gcc -m5-compact -I../../src/include/testmachine -g hello.c -c -o hello_sh.o
sh64-superh-elf-ld -mshelf32 -e _f hello_sh.o -o hello_sh
file hello_sh
../../gxemul -E testsh hello_sh


SPARC (64-bit)
--------------
sparc64-unknown-elf-gcc -I../../src/include/testmachine -g hello.c -c -o hello_sparc.o
sparc64-unknown-elf-ld -e f hello_sparc.o -o hello_sparc
file hello_sparc
../../gxemul -E testsparc hello_sparc