C/C++ within Ruby code?

后端 未结 6 2272
暗喜
暗喜 2021-02-10 09:39

C/C++ would be good option to write some of the performance critical aspects of a Ruby Application. I know this is possible.

I would like to know how to add C/C++ code i

6条回答
  •  误落风尘
    2021-02-10 10:09

    Besides "Extending Ruby", here are two other resources:

    • README.EXT (extension.rdoc) - shows you more about how to build C extensions. A good compliment to "Extending Ruby"
    • Ruby Inline - This is a library that tries to make it easier to build C extensions by having you call methods in ruby to compile C code.

提交回复
热议问题