Giter Site home page Giter Site logo

asm2asm's People

Contributors

asterdy avatar chenzhuoyu avatar liuq19 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

asm2asm's Issues

无法完全解析clang的汇编代码

.c代码:// ./inner/op.c
#include "op.h"

char isspace(char ch) {
return ch == ' ' || ch == '\r' || ch == '\n' | ch == '\t';
}

clang的汇编命令:clang -mno-red-zone -fno-asynchronous-unwind-tables -fno-builtin -fno-exceptions -fno-rtti -fno-stack-protector -nostdlib -O3 -msse4 -mavx -mno-avx2 -DUSE_AVX=1 -DUSE_AVX2=0 -S ./*.c

执行结果:python ./asm2asm.py ./op.s ../op.s
Traceback (most recent call last):
File "D:\GOWORK\src\ants\test\base\inner\asm2asm\asm2asm.py", line 2132, in
main()
File "D:\GOWORK\src\ants\test\base\inner\asm2asm\asm2asm.py", line 2067, in main
asm.parse(src, proto)
File "D:\GOWORK\src\ants\test\base\inner\asm2asm\asm2asm.py", line 1979, in parse
self._parse(src)
File "D:\GOWORK\src\ants\test\base\inner\asm2asm\asm2asm.py", line 1857, in _parse
raise SyntaxError('invalid assembly command: ' + cmd.cmd)
SyntaxError: invalid assembly command: .text
对clang的汇编指令有其他特殊要求吗?

can't run in python 3.7.3

python3 -m pip install --upgrade git+https://github.com/Maratyszcza/PeachPy
python3 asm2asm.py ../add.s add.s

error info:

Traceback (most recent call last):
  File "asm2asm.py", line 104, in <module>
    class Register:
  File "asm2asm.py", line 116, in Register
    @functools.cached_property
AttributeError: module 'functools' has no attribute 'cached_property'

how to fix this problem ?
Or what is the correct python version?
thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.