D
D
da da2021-03-06 18:32:55
assembler
da da, 2021-03-06 18:32:55

Assembly language program does not compile. How to fix?

There is such a program:
6043a0fdd465b902287255.png

It does not compile.
On raspberry pi 4 gives errors:
6043a03943307798877841.png

Operating system: Manjaro Linux ARM 64

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2021-03-08
@IIggoorrII

The program shown is for 32-bit ARM, the 32-bit ARM assembler is noticeably different from ARM 64 and I don't see aarch64-*-as options that tell it to run as 32-bit assembler. Set up a cross-toolchain for 32-bit ARM and use it.

D
da da, 2021-03-08
@IIggoorrII

TUTORIAL FOR ARM64 (works on cortex a72):
https://peterdn.com/post/2020/08/22/hello-world-in...
https://modexp.wordpress.com/2018/10/30/ arm64-assembly/
Thanks to user jcmvbkbc ! It's about registers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question