Go言語メモ

オブジェクトシンボル確認

6nmでコンパイル後のオプジェクトのシンボルを確認できる。

6nm hello.6
>
...
U type.string
U type.unit8

Cライブラリ リンク

Cのライブラリを6cでコンパイルすれば6lでリンクできる。

6c gogo.c
6g hello.go
6l gogo.6 hello.6


gccgoを使う方法もある。また今度。

Setting up and using gccgo