I am trying to compile a program using Flat Assembler (fasm) but I can't find a binary that works for the RPi. I have tried the regular and arm versions which both complain of "Exec Format Error". Is there any such binary that I can use?
Asked
Active
Viewed 428 times
1 Answers
1
It appears that FASMARM is a cross-compiler to ARM (from x86), i.e. it allows a fasm installation on an x86 machine to compile to ARM machine code. While FASMARM can compile to ARM machine code, it doesn't allow fasm itself to run on ARM.
Since fasm is written in Assembly, this makes porting it or compiling it for ARM challenging. I would not expect there to be a way for you to run fasm on your Pi.
You might be able to try compiling the code you have with a different assembler that is available on the Pi, but note that assembly is not always compatible between different assemblers. It may be wise to check the project's documentation and see if there is already a way to compile for the Pi, or ask a new question on this site otherwise.
Aurora0001
- 6,357
- 3
- 25
- 39