You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
github.com/bytedance/sonic has many comments in its assembly files, and one in particular caused us trouble: internal/rt/asm_amd64.s:2:// Code generated by asm2asm, DO NOT EDIT· Since we looked for "middle dot" characters anywhere, we would try to load the package "EDIT", which clearly does not exist. To fix that, start skipping over comments. Thankfully, Go's assembly syntax only supports "//" line comments, so it's enough to read one line at a time and skip them quickly. We also longer need a regular expression to find #include lines. While here, two other minor bits of cleanup. First, rename transformGo to transformGoFile, for clarity. Second, use ".s" extensions for obfuscated assembly filenames, just like we do with the comiler and ".go" files. Updates #621. |
3 years ago | |
---|---|---|
.. | ||
bench | 4 years ago | |
mod | 4 years ago | |
script | 3 years ago |