Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rust-mips3k
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Lindgren
rust-mips3k
Commits
dd06f5c2
Commit
dd06f5c2
authored
5 years ago
by
Per
Browse files
Options
Downloads
Patches
Plain Diff
WIP SyncSim (unsupported instruction)
parent
2f040671
No related branches found
No related tags found
No related merge requests found
Pipeline
#166
failed
5 years ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-1
5 additions, 1 deletion
README.md
link.ld
+1
-13
1 addition, 13 deletions
link.ld
mips_program.objdump
+57
-39
57 additions, 39 deletions
mips_program.objdump
with
63 additions
and
53 deletions
README.md
+
5
−
1
View file @
dd06f5c2
...
...
@@ -6,3 +6,7 @@ A minimal crate for experimenting with bare metal Rust for the MIPS-3k.
-
cargo install xargo
-
rustup
xargo build --release --example reverse
sde-objdump -h -z -s -d -t target/mipseb-unknown-none/release/examples/reverse > mips_program.objdump
This diff is collapsed.
Click to expand it.
link.ld
+
1
−
13
View file @
dd06f5c2
...
...
@@ -16,17 +16,13 @@ SECTIONS
*(.text*)
}
.rodata :
{
*(.rodata*)
}
_gp = ALIGN(16);
. = 0x00001000;
.data :
{
__sdata = .;
*(.rodata*);
*(.data*);
__edata = .;
}
...
...
@@ -43,14 +39,6 @@ SECTIONS
}
_BSS_END = .;
.vectors ALIGN(0x1000) :
{
_VECTOR_START = .;
KEEP(*(.tlb_exception))
. = _VECTOR_START + 0x180;
KEEP(*(.exception))
}
_STACK_END = .;
_STACK_START = START_ADDR + MEMORY_SIZE;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
mips_program.objdump
+
57
−
39
View file @
dd06f5c2
a.out: file format elf32-tradbigmips
target/mipseb-unknown-none/release/examples/reverse: file format elf32-tradbigmips
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000
03c
00000000 00000000 000000
6
0 2**2
0 .text 00000
140
00000000 00000000 000
1
0000 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000040 00001000 00001000 00001060 2**4
1 .reginfo 00000018 00000158 00000158 00010158 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_SAME_SIZE
2 .data 0000000b 00001000 00001000 00011000 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .got 00000008 00001010 00001010 00011010 2**4
CONTENTS, ALLOC, LOAD, DATA
2
.bss 00000000 000010
40
000010
40
000
010a0
2**0
4
.bss 00000000 000010
18
000010
18
000
11018
2**0
ALLOC
3 .reginfo 00000018 00000000 00000000 000010a0 2**2
CONTENTS, READONLY, LINK_ONCE_SAME_SIZE
4 .pdr 00000000 00000000 00000000 000010b8 2**2
5 .mdebug.abi32 00000000 00000000 00000000 00011018 2**0
CONTENTS, READONLY
6 .pdr 00000060 00000000 00000000 00011018 2**2
CONTENTS, READONLY
7 .comment 00000012 00000000 00000000 00011078 2**0
CONTENTS, READONLY
SYMBOL TABLE:
00000000 l d .text 00000000 .text
00001000 l d .data 00000000 .data
00001040 l d .bss 00000000 .bss
00000000 l d .reginfo 00000000 .reginfo
00000000 l d .pdr 00000000 .pdr
00000000 l d *ABS* 00000000 .shstrtab
00000000 l d *ABS* 00000000 .symtab
00000000 l d *ABS* 00000000 .strtab
00000000 l .text 00000000 main
00001000 l .data 00000000 intext
00001010 l .data 00000000 outtext
00000014 l .text 00000000 seek_end
00000028 l .text 00000000 seek_end1
00000038 l .text 00000000 copy
00000038 l .text 00000000 stop
00000000 g *ABS* 00000000 __start
00000000 l df *ABS* 00000000 reverse.7r779dn2-cgu.0
0000007c l F .text 00000060 _ZN7reverse3rev17h10307c82767293bfE
00000140 l *ABS* 00000000 .hidden _gp
00001018 g .bss 00000000 __ebss
0000100b g .data 00000000 __edata
00001018 g .bss 00000000 __sbss
00001000 g .data 00000000 __sdata
00001000 g *ABS* 00000000 __sidata
00000000 g F .text 0000007c _start
000000dc g F .text 00000064 main
00000000 g *ABS* 00000000 START_ADDR
80000000 g *ABS* 00000000 MEMORY_SIZE
0000100b g .data 00000000 _BSS_START
00001018 g .bss 00000000 _BSS_END
00001018 g .bss 00000000 _STACK_END
80000000 g *ABS* 00000000 _STACK_START
Contents of section .text:
0000 3c090000 25291000 3c0a0000 254a1010 <...%)..<...%J..
0010 24080000 812b0000 11600003 25080001 $....+...`..%...
0020 25290001 1000fffb 01485021 a14b0000 %).......HP!.K..
0030 3c090000 25291000 1000ffff <...%)......
0000 27bdfff0 3c010000 24221018 3c010000 '...<...$"..<...
0010 24231018 0062082b 10200006 00000000 $#...b.+. ......
0020 ac600000 24630004 0062082b 1420fffc .`..$c...b.+. ..
0030 00000000 3c010000 2422100b 3c010000 ....<...$"..<...
0040 24231000 0062082b 10200009 00000000 $#...b.+. ......
0050 3c010000 24241000 8c810000 ac610000 <...$$.......a..
0060 24630004 0062082b 1420fffb 24840004 $c...b.+. ..$...
0070 0c000037 00000000 0000000d 10a00015 ...7............
0080 00000000 27bdfff0 afbf000c afb20008 ....'...........
0090 afb10004 afb00000 24b2ffff 00808825 ........$......%
00a0 24840001 00c08025 02402825 0c00001f $......%.@(%....
00b0 02403825 02120821 92220000 8fb00000 .@8%...!."......
00c0 8fb10004 8fb20008 8fbf000c a0220000 ............."..
00d0 27bd0010 03e00008 00000000 27bdfff0 '...........'...
00e0 afbf000c 3c010000 27a60000 2405000b ....<...'...$...
00f0 2407000b aba00007 bba0000a afa00004 $...............
0100 afa00000 0c00001f 24241000 93a1000a ........$$......
0110 93a10009 93a10008 93a10007 93a10006 ................
0120 93a10005 93a10004 93a10003 93a10002 ................
0130 93a10001 93a10000 0800004e 00000000 ...........N....
Contents of section .data:
1000 21646c72 6f57206f 6c6c6548 00000000 !dlroW olleH....
1010 78787878 78787878 78787878 78787878 xxxxxxxxxxxxxxxx
1020 78787878 78787878 78787878 78787878 xxxxxxxxxxxxxxxx
1030 00000000 00000000 00000000 00000000 ................
Contents of section .reginfo:
0000 10000f00 00000000 00000000 00000000 ................
0010 00000000 00000000 ........
1000 48656c6c 6f20576f 726421 Hello Word!
Disassembly of section .text:
00000000 <_start>:
0: 27bdfff0 addiu sp,sp,-16
4: 3c010000 lui at,0x0
8: 242210
00
addiu v0,at,4
096
8: 242210
18
addiu v0,at,4
120
c: 3c010000 lui at,0x0
10: 242310
00
addiu v1,at,4
096
10: 242310
18
addiu v1,at,4
120
14: 0062082b sltu at,v1,v0
18: 10200006 beqz at,34 <START_ADDR+0x34>
1c: 00000000 nop
...
...
@@ -62,7 +80,7 @@ Disassembly of section .text:
2c: 1420fffc bnez at,20 <START_ADDR+0x20>
30: 00000000 nop
34: 3c010000 lui at,0x0
38: 2422100
0
addiu v0,at,4
096
38: 2422100
b
addiu v0,at,4
107
3c: 3c010000 lui at,0x0
40: 24231000 addiu v1,at,4096
44: 0062082b sltu at,v1,v0
...
...
@@ -118,7 +136,7 @@ Disassembly of section .text:
fc: afa00004 sw zero,4(sp)
100: afa00000 sw zero,0(sp)
104: 0c00001f jal 7c <_ZN7reverse3rev17h10307c82767293bfE>
108: 2424
017
0 addiu a0,at,
368
108: 2424
100
0 addiu a0,at,
4096
10c: 93a1000a lbu at,10(sp)
110: 93a10009 lbu at,9(sp)
114: 93a10008 lbu at,8(sp)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment