|
Revision 2578, 0.5 KB
(checked in by Charles.Esterbrook, 10 months ago)
|
|
JVM back-end progress, courtesy of hopscc.
credit:hopscc
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #.require. jvm |
|---|
| 2 | namespace Test |
|---|
| 3 | class Test |
|---|
| 4 | def main |
|---|
| 5 | is shared |
|---|
| 6 | #nl as String = Environment.newLine |
|---|
| 7 | nl as String? = System.getProperty('line.separator') |
|---|
| 8 | nl1 as String? = String.format('%n') |
|---|
| 9 | assert nl == nl1 |
|---|
| 10 | pathSep as String? = File.pathSeparator |
|---|
| 11 | sep as String? = Java.Io.File.separator |
|---|
| 12 | print 'pathSep', pathSep |
|---|
| 13 | print 'DirSep', sep |
|---|
| 14 | |
|---|
| 15 | CobraCore.noOp(nl, nl1, pathSep) |
|---|
| 16 | |
|---|
| 17 | rt = Runtime.runtime # Runtime.getRuntime |
|---|
| 18 | s = rt.totalMemory to ! |
|---|
| 19 | print s, 'bytes' |
|---|
| 20 | #print s/1024/1024, 'MB' |
|---|
| 21 | print rt |
|---|