1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Put a documentation about MJIT [ci skip]

This commit is contained in:
Takashi Kokubun 2022-08-30 17:07:27 -07:00
parent f4cdfff084
commit 221a523683
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

16
doc/mjit/mjit.md Normal file
View file

@ -0,0 +1,16 @@
# MJIT
Here are some tips that might be useful when you work on MJIT:
## Always run make install
Always run `make install` before running MJIT. It could easily cause a SEGV if you don't.
MJIT looks for the installed header for security reasons.
## --mjit-debug vs --mjit-debug=-ggdb3
`--mjit-debug=[flags]` allows you to specify arbitrary flags while keeping other compiler flags like `-O3`,
which is useful for profiling benchmarks.
`--mjit-debug` alone, on the other hand, disables `-O3` and adds debug flags.
If you're debugging MJIT, what you need to use is not `--mjit-debug=-ggdb3` but `--mjit-debug`.