2017-09-02から1日間の記事一覧

go:noescape

go

goのソース読んでるとたまに見かける go:noescape についてメモ. go:noescapeはGoコンパイラのエスケープ解析へのヒント。 エスケープとは、関数内でメモリに割り当てられた値が関数が終了したあとも、呼び出し元の関数や別のスレッドから値が参照されること…

Go Assembler メモ

go

GoのアセンブラはPlan 9のものを引き継いでいる。 A Quick Guide to Go’s Assembler A Manual for the Plan 9 assembler 疑似レジスタ FP: Frame pointer arguments and locals. PC: Program counter jumps and branches. SB: Static base pointer global sy…