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

Advanced users • Running 32bit ELF executables on 64bit Pi OS

$
0
0
Hi,

I'm working on an ARM compiler that generates ARM32 machine language:

https://github.com/HPCguy/Squint

I've noticed that I can JIT compile my code on the 64bit PI OS, and it works great. However, when I create a 32bit ELF file, it will not run on 64bit PI OS.

Has anyone written a "bridge" application that will run 32 bit ELF executables on the PI OS 64 bit Operating System, so that I don't always have to JIT compile to get my applications to run? I'd like to run at "full speed", and not in some hobbled VM.

Finally, everything works fine on 32bit PI OS on Pi 4.

Thanks for reading this far.
-HPCguy

PS Here's how to duplicate my problem from the repository above:

% make
% ./mc-so tests/sudoku.c # JIT compile. Runs great!
% ./mc-so -o sudoku tests/sudoku.c
% ./sudoku # crashes
% scripts/disasm sudoku # dumps assembly language for sudoku, and it is fine

Statistics: Posted by HPCguy — Mon Apr 21, 2025 11:45 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles