2020-03-01から1ヶ月間の記事一覧

mruby/c をリンクする

mruby/cの呼び出し サンプルのコードをテキトーに張りました. #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "mrubyc.h" int hal_write(int fd, const void *buf, int nbytes) { return 1; } int hal_flush(int fd) { return 1; } static const uint8_t #if defin</stdint.h></stdlib.h></stdio.h>…

mruby/c をコンパイルする

設計を考えていて MCU を決める事が最優先事項なので、mruby/c を導入してみました. 2週間ぐらい前に試したらリンクさえ通らなかったのですが、手順をやり直しました. 目的 MCU 側のクロスコンパイラで mruby/c をリンク、簡単な動作をみて実用に値するかが…