run: WIP snapshot
run: WIP snapshot
run: WIP snapshot
run: It's "alive"

jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ git log | head
commit d6d7864dc53716f5f0b061d46e7f2b77bcef5ccb
Author: cznic <0xjnml@gmail.com>
Date:   Thu Jan 30 22:29:53 2014 +0100

    run: WIP snapshot

commit 6e8ca356b9d741b1d12725d9c318d8cbdc14fb2d
Author: cznic <0xjnml@gmail.com>
Date:   Thu Jan 30 21:43:03 2014 +0100

jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ env | grep RUN
RUNARCH=amd64
RUNPATH=/home/jnml/src/github.com/cznic/tmp/run/_testdata/
RUNGEN=asm
XDG_RUNTIME_DIR=/run/user/jnml
RUNOS=linux
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ cat $RUNPATH/src/main0/main.run
// vi:filetype=go

run package main

func main() {}
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ ll
celkem 0
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ run -v main0 > main.s
2014/01/30 22:33:10 main.go:103: RUNPATH is /home/jnml/src/github.com/cznic/tmp/run/_testdata
2014/01/30 22:33:10 main.go:104: RUNOS is linux
2014/01/30 22:33:10 main.go:105: RUNARCH is amd64
2014/01/30 22:33:10 main.go:106: RUNGEN is asm
2014/01/30 22:33:10 main.go:107: project import path is main0
2014/01/30 22:33:10 gen.go:148: compile package main0
2014/01/30 22:33:10 gen.go:233: compile file /home/jnml/src/github.com/cznic/tmp/run/_testdata/src/main0/main.run
2014/01/30 22:33:10 gen.go:265: compile file /home/jnml/src/github.com/cznic/tmp/run/_testdata/src/main0/main.run finished
2014/01/30 22:33:10 gen.go:213: /home/jnml/src/github.com/cznic/tmp/run/_testdata/src/main0/main.run:5:6 setting main func
2014/01/30 22:33:10 asm_linux_amd64.go:20:
*fnDecl{
·  Name: *ident(5:6 "main")
·  RxName: nil
·  RxType: nil
·  Type: *fnType{
·  ·  pos: 5:10
·  ·  Ddd: bool(false)
·  ·  In: []*param{
·  ·  }
·  ·  Out: []*param{
·  ·  }
·  }
·  Block: *block{
·  ·  pos: 5:13
·  ·  Stmts: []stmt{
·  ·  }
·  }
}
2014/01/30 22:33:10 gen.go:226: compile package main0 finished
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ ll
celkem 4
-rw-r--r-- 1 jnml jnml 108 led 30 22:33 main.s
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ cat main.s
	.global _start

	.text
_start:
        mov     $60, %rax
        xor     $0, %rdi
        syscall
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ as -o main.o main.s
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ ll
celkem 8
-rw-r--r-- 1 jnml jnml 704 led 30 22:33 main.o
-rw-r--r-- 1 jnml jnml 108 led 30 22:33 main.s
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ ld main.o
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ ll
celkem 12
-rwxr-xr-x 1 jnml jnml 664 led 30 22:33 a.out*
-rw-r--r-- 1 jnml jnml 704 led 30 22:33 main.o
-rw-r--r-- 1 jnml jnml 108 led 30 22:33 main.s
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $ strace ./a.out
execve("./a.out", ["./a.out"], [/* 54 vars */]) = 0
_exit(0)                                = ?
jnml@r630 ~/src/github.com/cznic/tmp/run/_tmp $