Skip to content

Commit 9278a29

Browse files
committed
Create experimental-backend.md
1 parent d0fa856 commit 9278a29

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

experimental-backend.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Experimental Backend in Scala 2.11
2+
3+
Scala 2.11 ships with an experimental backend named "GenBCode", originally implemented by [Miguel Garcia](https://github.com/magarciaEPFL).
4+
This backend will become the new default in Scala 2.12.
5+
Given that the new backend is experimental in Scala 2.11, it can be modified and extended without compatibility concerns.
6+
Most of the work towards the Scala 2.12 backend happens in the 2.11 branch and flows into 2.11.x minor releases.
7+
8+
This gives you the chance to preview pieces of Scala 2.12 just by enabling some compiler flags in 2.11!
9+
10+
## Enabling GenBCode
11+
12+
`-Ybackend:GenBCode` enables the new backend.
13+
14+
GenBCode without any further compiler flags is a drop-in replacement for the current backend ("GenASM").
15+
The generated bytecode is binary compatible, altough not exactly the same; some instruction sequences may differ.
16+
If you find a binary incompatibility, please [report an issue](https://issues.scala-lang.org/secure/Dashboard.jspa).
17+
18+
19+
20+
## Delambdafy-Method
21+
22+

0 commit comments

Comments
 (0)