Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
7dc595f9
Unverified
Commit
7dc595f9
authored
Aug 14, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a new document named `mruby3.md`.
That describes the changes in `mruby3`.
parent
d4b89ccc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
doc/mruby3.md
doc/mruby3.md
+61
-0
No files found.
doc/mruby3.md
0 → 100644
View file @
7dc595f9
User visible changes in `mruby3`
===
= New Syntax
We have ported some new syntax from CRuby.
*
R-assignment (
`12 => x`
)
*
Numbered block parameter (
`x.map{_1 * 2}`
)
*
End-less
`def`
(
`def double(x) = x*2`
)
= Build System
You can specify
`TARGET`
option to
`rake`
via a command line
option, or via an environment variable, e.g.
`rake TARGET=host all`
or
`TARGET=host rake all`
It's much easier to switch multiple targets than the
previous
`build_config.rb`
system.
==
`presym`
target
The first compilation of
`mruby`
may require generation of a
static symbol table named
`build/presym`
. You can generate
the table by
`rake gensym`
.
==
`target`
directory
Build target specification files are loaded from
`target`
directory. The default
`TARGET`
is
`host`
which is described
in
`target/host.rb`
. There are many other targets for example:
*
`host-gprof`
: compiles with
`gprof`
for performance tuning
*
`host-m32`
: compiles in gcc 32bit mode on 64bit platforms
*
`boxing`
: compiles all three boxing options
*
`clang-asan`
: compiles with
`clang`
's Address Sanitizer
`target/host.rb`
comes with comments to help writing a new
target description.
= Build Target Contribution
When you write a new target description, please
contribute. We welcome your contribution as a GitHub
pull-request.
= Configuration Options
Some configuration macro names are changed for consistency
==
`MRB_USE_METHOD_T_STRUCT`
Changed from
`MRB_METHOD_T_STRUCT`
.
To use
`struct`
version of
`mrb_method_t`
. More portable but consumes more memory.
Turned on by default on 32bit platforms.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment