LoginSignup
16
15

More than 5 years have passed since last update.

mrubyの基礎知識: ビルド、生成物、ファイルの拡張子、ドキュメントについて

Posted at

レポジトリ

https://github.com/mruby/mruby

チェックアウトからビルドまで

# チェックアウト
$ git clone git://github.com/mruby/mruby.git

# ビルド
$ cd mruby
$ rake 

# 実行テスト
$ ./bin/mruby -e 'puts "Hi"''
Hi

gccとかbisonとか必要

ビルド後の生成物

  • mruby .. rubyに相当
  • mirb .. irbに相当
  • mrbc .. rb -> mrb に変換するバイトコンパイラ

拡張子

  • rb .. Rubyスクリプト(mrb_load_fileで読む)
  • mrb .. mrbcでバイトコンパイルしたバイナリ形式(mrb_load_irep_fileで読む)

ドキュメント

  • Wiki読もう。Hello Worldから
  • 日本語の情報もググれば結構ある。

辺り。

後はソース。

辺りが重要。手前味噌だけどmruby - Kodeworld使うと捗る。

16
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
15