Ruby Compiler Code
Compiling your Ruby application into a single executable.
Brought to you by:
pmq20
File | Date | Author | Commit |
---|---|---|---|
bin | 2017-06-13 |
![]() |
[37dd56] add --keep-tmpdir |
lib | 2017-06-20 |
![]() |
[72b751] add CONFIG["RUBY_EXEC_PREFIX"] for win32 |
ruby | 2017-06-20 |
![]() |
[ddec77] fix Dir.glob |
tests | 2017-03-23 |
![]() |
[2c9fba] use 2.4.1 |
vendor | 2017-06-12 |
![]() |
[d61e87] make "make install" work |
.gitignore | 2017-02-08 |
![]() |
[5baaa7] simplify |
.gitmodules | 2017-03-16 |
![]() |
[ac7400] add test PART 2 |
.travis.yml | 2017-03-23 |
![]() |
[2c9fba] use 2.4.1 |
CHANGELOG.md | 2017-03-23 |
![]() |
[dffdb1] upgrade ruby runtime to 2.4.1, libsquash to htt... |
LICENSE | 2017-01-22 |
![]() |
[d50430] update libsquash |
README.md | 2017-06-09 |
![]() |
[7f65e5] Update README.md |
appveyor.yml | 2017-03-23 |
![]() |
[2c9fba] use 2.4.1 |
Ahead-of-time (AOT) Compiler designed for Ruby.
Master CI | RAM Test | Black-box Test | Latest Stable | |
---|---|---|---|---|
Windows | https://sourceforge.net/projects/ruby-compiler/files/v0.1.0/rubyc.exe/download | |||
macOS | https://sourceforge.net/projects/ruby-compiler/files/v0.1.0/rubyc-darwin-x64/download | |||
Linux | https://sourceforge.net/projects/ruby-compiler/files/v0.1.0/rubyc-linux-x64/download |
First install the prerequisites:
require 'zlib'
works, if not install zlib.dll and zlib extension first.Then download the executable rubyc.exe
and run it from the Visual Studio Command Prompt.
First install the prerequisites:
brew install squashfs
Command Line Tools
via Xcode. You can findXcode -> Preferences -> Downloads
gcc
and the related toolchain containing make
Then,
curl -L https://sourceforge.net/projects/ruby-compiler/files/v0.1.0/rubyc-darwin-x64/download > rubyc
chmod +x rubyc
./rubyc
First install the prerequisites:
gcc
or clang
Then,
curl -L https://sourceforge.net/projects/ruby-compiler/files/v0.1.0/rubyc-linux-x64/download > rubyc
chmod +x rubyc
./rubyc
If ENTRANCE
was not provided, then a single Ruby interpreter executable will be produced.
rubyc [OPTION]... [ENTRANCE]
-r, --root=DIR The path to the root of the application
-o, --output=FILE The path of the output file
-d, --tmpdir=DIR The directory for temporary files
-c, --clean Cleans temporary files before compiling
--make-args=ARGS Extra arguments to be passed to make
--nmake-args=ARGS Extra arguments to be passed to nmake
--debug Enable debug mode
-v, --version Prints the version of rubyc and exit
--ruby-version Prints the version of the Ruby runtime and exit
--ruby-api-version Prints the version of the Ruby API and exit
-h, --help Prints this help and exit
--examples Prints usage examples
rubyc
./a.out (or a.exe on Windows)
git clone --depth 1 https://github.com/pmq20/ruby-compiler
cd ruby-compiler
rubyc bin/rubyc
./a.out (or a.exe on Windows)
git clone --depth 1 https://github.com/pmq20/node-compiler
cd node-compiler
rubyc bin/nodec
./a.out (or a.exe on Windows)
git clone --depth 1 https://github.com/ruby-china/homeland
cd homeland
rubyc bin/rails
DATABASE_URL=... ./a.out server (or a.exe on Windows)