Crates.io | trim-go-asm |
lib.rs | trim-go-asm |
version | 0.1.3 |
source | src |
created_at | 2021-10-30 11:17:24.390859 |
updated_at | 2022-02-25 03:46:54.581684 |
description | Trim Go Assembly from $ go tool compile -S |
homepage | |
repository | https://github.com/ggvm-org/trim-go-asm |
max_upload_size | |
id | 474355 |
size | 24,244 |
Trim Go Assembly from $ go tool compile -S
$ cargo install trim-go-asm
Version 0.1 can parse input only from stdin.
So, $ go tool compile -S x.go > trim-go-asm
is the most likely use case.
Any contributions are welcome!
*.go
by option, then run go tool compile -S <filename>.go | trim-go-asm > <filename>.s
-o
for-me
USAGE:
trim-go-asm [OPTIONS]
OPTIONS:
--fm todo!
-h, --help Print help information
--ra Replace `ABIInternal` to 4(NOSPLIT)
--rpf Remove PCDATA and FUNCDATA insts, if you want to enable this option, you must
enable --tg too.
--tg Trim Goroutine prologue / epilogue
// Trim these instructions.
MOVQ (TLS), CX
CMPQ SP, 16(CX)
PCDATA $0, $-2
JLS 70
PCDATA $0, $-1
// ...
NOP
PCDATA $1, $-1
PCDATA $0, $-2
CALL runtime.morestack_noctxt(SB)
PCDATA $0, $-1
JMP 0
-V, --version Print version information