Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang cannot assemble 9cc's output assembly code. #8

Open
youpong opened this issue Jul 2, 2019 · 0 comments
Open

clang cannot assemble 9cc's output assembly code. #8

youpong opened this issue Jul 2, 2019 · 0 comments

Comments

@youpong
Copy link
Owner

youpong commented Jul 2, 2019

$ make check
./9cc -test
OK
cd test; make clean check
make[1]: Entering directory '~/9cc/test'
rm -f test *.s *.o a.out core *~
../9cc test.c >test.s
clang -o test.o -c test.s
test.s:1013:2: error: invalid instruction mnemonic 'movzb'
movzb rax, al
^~~~~
test.s:1037:2: error: invalid instruction mnemonic 'movzb'
movzb rax, al
^~~~~
test.s:1066:2: error: invalid instruction mnemonic 'movzb'
movzb rax, al
^~~~~
test.s:1095:2: error: invalid instruction mnemonic 'movzb'
movzb rax, al
^~~~~
test.s:1476:2: error: invalid instruction mnemonic 'movzb'
movzb rax, al
^~~~~
test.s:1591:2: error: invalid instruction mnemonic 'movzb'
movzb rax, al
^~~~~
make[1]: *** [Makefile:26: test.o] Error 1
make[1]: Leaving directory '~/9cc/test'
make: *** [Makefile:28: check] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant