rabbit-slide-hasumikin-RAGrant2020Report 2021.7.6.1 → 2021.7.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/PicoRubyCompiler.rab +41 -8
- data/config.yaml +1 -1
- data/pdf/RAGrant2020Report-PicoRubyCompiler.pdf +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a49711d7c452723d68d256a20aa6ad42ad622193b2a87ebf67208ee2ceb5c13
|
4
|
+
data.tar.gz: 8eb74735b38fc82f16bc0285c03ceb73cb4a9ff72be4379018a5909b03652843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53bcbef9fc98d0da131d15d944a8581f7baf1d50643ce408a1ad0741ec19578007bac1bf0b2c897a43bd19f4dca695d077599b07ef1ae44b383c8a2f4b4397e0
|
7
|
+
data.tar.gz: 8e4355c1242fd008de226c65e0f1b181091cc51741fce270c437fdcbe8da9c27515e6fd4a84f0bbbab1540a633bf41091a85f0cab4a7136dee8edba8a0a644ae
|
data/PicoRubyCompiler.rab
CHANGED
@@ -72,8 +72,8 @@ Doesn't make sense 🤔
|
|
72
72
|
|
73
73
|
= Why doesn't make sense?
|
74
74
|
* mruby-compiler depends on mruby (mrb_state)
|
75
|
-
* You can use mruby
|
76
|
-
* However,
|
75
|
+
* You can use mruby-compiler with mruby/c VM
|
76
|
+
* However, the size of mruby-compiler spoils mruby/c's small footprint
|
77
77
|
* OK,
|
78
78
|
|
79
79
|
= Ruby for embedded system
|
@@ -92,12 +92,12 @@ Doesn't make sense 🤔
|
|
92
92
|
(('tag:center'))
|
93
93
|
PicoRuby Compiler for one-chip microcontrollers 💪
|
94
94
|
|
95
|
-
= PicoRuby Compiler
|
95
|
+
= Possibilities of PicoRuby Compiler
|
96
96
|
* REPL
|
97
97
|
* Debugging on an actual device
|
98
|
-
|
98
|
+
* Even with mruby VM
|
99
|
+
* One stop solution with mruby/c VM
|
99
100
|
* For newbies, education, Smalruby etc.
|
100
|
-
* Just for fun 😊
|
101
101
|
|
102
102
|
# image
|
103
103
|
# src = images/hatti.png
|
@@ -307,7 +307,7 @@ while/until, break, etc were unimplemented yet
|
|
307
307
|
|
308
308
|
= What happened?
|
309
309
|
* 1. Reusing literal data as much as possible
|
310
|
-
* 2. Pooled allocation
|
310
|
+
* 2. Considering paddings & Pooled allocation
|
311
311
|
* 3. Freeing in loop instead of recursion
|
312
312
|
|
313
313
|
= Reusing literal data as much as possible
|
@@ -323,9 +323,10 @@ while/until, break, etc were unimplemented yet
|
|
323
323
|
|
324
324
|
* Tokens
|
325
325
|
* `array`, `[`, `0`, `]`, `=`, `:`, `data`
|
326
|
-
|
327
|
-
|
326
|
+
* Method name should be `[]=`, but where? how?
|
327
|
+
* Thus, some literal data should be exceptional
|
328
328
|
* Kind of a strategic decision
|
329
|
+
* Beware of memory leaks
|
329
330
|
|
330
331
|
= Padding in a struct
|
331
332
|
# enscript c
|
@@ -445,6 +446,38 @@ Before RA Grant
|
|
445
446
|
# src = images/freeTree_3.png
|
446
447
|
# relative_width = 100
|
447
448
|
|
449
|
+
= Stack spike
|
450
|
+
(('tag:center'))
|
451
|
+
Before RA Grant
|
452
|
+
--------------------------------------------------------------------------------
|
453
|
+
Command: ../picoruby/build/host-production/bin/picorbc larger_script.rb
|
454
|
+
Massif arguments: --stacks=yes
|
455
|
+
ms_print arguments: massif.out.13414
|
456
|
+
--------------------------------------------------------------------------------
|
457
|
+
KB
|
458
|
+
53.20^ #
|
459
|
+
| #
|
460
|
+
| @# :::
|
461
|
+
| @# : :
|
462
|
+
| @# : :
|
463
|
+
| @@# : :
|
464
|
+
| @@# :: :
|
465
|
+
| @@#::: :
|
466
|
+
| @@#::: :
|
467
|
+
| @@::@@#::: :
|
468
|
+
| @@: @@#::: :
|
469
|
+
| @@:@:::@::::@@: @@#::: ::
|
470
|
+
| @::@::@ :@:: @:: :@@: @@#::: ::
|
471
|
+
| @:::@@@:@::@: @ :@:: @:: :@@: @@#::: ::
|
472
|
+
| @@:@::@:: @@ :@::@: @ :@:: @:: :@@: @@#::: ::
|
473
|
+
| ::@@@ :@: @:: @@ :@::@: @ :@:: @:: :@@: @@#::: ::
|
474
|
+
| :::::: :::::@ @ :@: @:: @@ :@::@: @ :@:: @:: :@@: @@#::: ::
|
475
|
+
| :::::@@:: :::::: ::@ @ :@: @:: @@ :@::@: @ :@:: @:: :@@: @@#::: ::
|
476
|
+
| : :: @ :: :::::: ::@ @ :@: @:: @@ :@::@: @ :@:: @:: :@@: @@#::: ::
|
477
|
+
| : :: @ :: :::::: ::@ @ :@: @:: @@ :@::@: @ :@:: @:: :@@: @@#::: ::
|
478
|
+
0 +----------------------------------------------------------------------->Mi
|
479
|
+
0 1.616
|
480
|
+
|
448
481
|
= Stack spike
|
449
482
|
# image
|
450
483
|
# src = images/freeTree_4.png
|
data/config.yaml
CHANGED
Binary file
|