Using Ruby as a scripting engine for C programs


I m real new to ruby and I m evaluating some language to extend a C program
with script. I have some questions:

  • can Ruby be compiled ? (to have some binary representations ?)
  • I saw that you can extend ruby quite easyly with C extension but cqn you
    call Ruby method from C program ?
  • Can you embed the ruby interpreter and give it a buffer with Ruby scripts
  • and last question if everything above is possible, what is approximatly
    the foot print of embedding ruby in my binary ?

(when I write C, it means C or C++)

Thanks for your help and if you have any links, :slight_smile: