Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lunixbochs/capstr
(fast) Capstone Go bindings
https://github.com/lunixbochs/capstr
Last synced: 2 months ago
JSON representation
(fast) Capstone Go bindings
- Host: GitHub
- URL: https://github.com/lunixbochs/capstr
- Owner: lunixbochs
- License: mit
- Created: 2017-05-13T01:25:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-08T07:27:59.000Z (over 6 years ago)
- Last Synced: 2024-10-04T16:18:50.841Z (3 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
capstr
--------Capstone Go bindings facilitating highly optimized printing of disassembly.
Usage
--------```
import "github.com/lunixbochs/capstr"engine, err := capstr.New(capstr.ARCH_X86, capstr.MODE_32)
insns, err := engine.Dis(code, addr, insCount)
for _, ins := range insns {
fmt.Printf("%#x: %s %s\n", ins.Addr(), ins.Mnemonic(), ins.OpStr())
}
```Benchmarks
-------
```
BenchmarkX86-4 200000 5532 ns/op 1032 B/op 22 allocs/op
BenchmarkGapstone-4 200000 9900 ns/op 9704 B/op 54 allocs/op
```