Skip to content

A repo that hosts bytecode converter, loader, and decompiler files for the Ruby programming language.

Notifications You must be signed in to change notification settings

ardatetikbey/Ruby-Bytecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby-Bytecode Tools

This project allows you to convert Ruby source files (.rb) into bytecode files (.bin), load and execute the bytecode, and disassemble it to inspect the Ruby bytecode.

Features

  • Convert Ruby source code to bytecode: Convert .rb files into .bin bytecode files.

  • Execute Ruby bytecode: Load and execute bytecode from .bin files.

  • Disassemble bytecode: View the disassembled bytecode for inspection.

Requirements

  • Ruby 2.6 or higher

  • Ruby's RubyVM::InstructionSequence for bytecode compilation and execution

Usage

  • To convert a .rb file into a .bin bytecode file:
ruby converter.rb path/to/your_script.rb  
  • To execute the bytecode from a .bin file:
ruby loader.rb path/to/your_script.bin
  • To view the disassembled bytecode from a .bin file:
ruby disassemble.rb path/to/your_script.bin

About

A repo that hosts bytecode converter, loader, and decompiler files for the Ruby programming language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages