Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8015

Bare metal, Assembly language • Re: Error message compiling Assembly language

$
0
0
Can I ask what you are trying to do? Why are you using -m?

As you say, the CPU's on the Pi are ARM not x86.
Normally to build a simple hello world program hand written in assembler, use something like this:

Code:

as hello.s -o hello.o && ld hello.o -o hello
Otherwise if its to be used with the C compiler (with a "main" function etc):

Code:

cc hello.s -o hello
I'm using -m as per instruction from a video. As you can see, I don't know much about coding

Statistics: Posted by RaspyHat — Sun Apr 06, 2025 10:34 am



Viewing all articles
Browse latest Browse all 8015

Trending Articles