Skip to content

Commit 4e61e3b

Browse files
Make self and mandel examples a bit smaller
1 parent 4741900 commit 4e61e3b

File tree

7 files changed

+12
-19
lines changed

7 files changed

+12
-19
lines changed

apps/self/mandel.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ const unsigned char mandel[] = {
1717
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
1818
0x13, 0x0e, 0x1e, 0x09, 0xe3, 0xd6, 0xc3, 0xf9, 0x13, 0x05, 0xa0, 0x00,
1919
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
20-
0x13, 0x08, 0x98, 0x19, 0xe3, 0xd6, 0x02, 0xf7, 0x37, 0x05, 0x00, 0x80,
21-
0x13, 0x05, 0x05, 0x10, 0x93, 0x08, 0x30, 0x00, 0x93, 0x05, 0x00, 0x00,
22-
0x73, 0x00, 0x00, 0x00, 0x03, 0x24, 0xc1, 0x00, 0x13, 0x01, 0x01, 0x01,
23-
0x67, 0x80, 0x00, 0x00, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f,
24-
0x72, 0x6c, 0x64, 0x00
20+
0x13, 0x08, 0x98, 0x19, 0xe3, 0xd6, 0x02, 0xf7, 0x03, 0x24, 0xc1, 0x00,
21+
0x13, 0x01, 0x01, 0x01, 0x67, 0x80, 0x00, 0x00
2522
};
2623
unsigned int mandel_len =
27-
268
24+
236
2825
;

apps/self/self.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ void main(void) {
2626
putc(uvm32_arg_getval(&vmst, &evt, ARG0));
2727
break;
2828
case UVM32_SYSCALL_PRINTLN: {
29-
const char *str = uvm32_arg_getcstr(&vmst, &evt, ARG0);
30-
println(str);
29+
//const char *str = uvm32_arg_getcstr(&vmst, &evt, ARG0);
30+
//println(str);
3131
} break;
3232
default:
33-
println("Unhandled syscall");
33+
// println("Unhandled syscall");
3434
break;
3535
}
3636
break;
3737
case UVM32_EVT_ERR:
38-
println("error: ");
39-
printdec(evt.data.err.errcode);
40-
println("");
38+
// println("error: ");
39+
// printdec(evt.data.err.errcode);
40+
// println("");
4141
break;
4242
default:
4343
break;

apps/zig-mandel/src/main.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ fn mandel() void {
3636

3737
export fn main() void {
3838
mandel();
39-
uvm.println("Hello world");
4039
}

hosts/host-mini/mandel.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ const unsigned char mandel[] = {
1717
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
1818
0x13, 0x0e, 0x1e, 0x09, 0xe3, 0xd6, 0xc3, 0xf9, 0x13, 0x05, 0xa0, 0x00,
1919
0x93, 0x05, 0x00, 0x00, 0x93, 0x08, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00,
20-
0x13, 0x08, 0x98, 0x19, 0xe3, 0xd6, 0x02, 0xf7, 0x37, 0x05, 0x00, 0x80,
21-
0x13, 0x05, 0x05, 0x10, 0x93, 0x08, 0x30, 0x00, 0x93, 0x05, 0x00, 0x00,
22-
0x73, 0x00, 0x00, 0x00, 0x03, 0x24, 0xc1, 0x00, 0x13, 0x01, 0x01, 0x01,
23-
0x67, 0x80, 0x00, 0x00, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f,
24-
0x72, 0x6c, 0x64, 0x00
20+
0x13, 0x08, 0x98, 0x19, 0xe3, 0xd6, 0x02, 0xf7, 0x03, 0x24, 0xc1, 0x00,
21+
0x13, 0x01, 0x01, 0x01, 0x67, 0x80, 0x00, 0x00
2522
};
2623
unsigned int mandel_len =
27-
268
24+
236
2825
;

precompiled/agnes.bin

48 Bytes
Binary file not shown.

precompiled/mandel.bin

-32 Bytes
Binary file not shown.

precompiled/self.bin

-496 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)