What compiler statement for the ARM (RPI processor architecture) ?

Raspberry PI specific forum
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

What compiler statement for the ARM (RPI processor architecture) ?

Post by Joris »

What compiler statement to use for the ARM (RPI) ?

I have some assembler code in use, which runs fine under x86-64 processor architecture, but doesn't under ARM.
I made a replacement for the assembler code, but instead of removing, I'de like to keep it inside the import file.
So I think, I can do that with the correct compiler statement, but which one ?

Thanks
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: What compiler statement for the ARM (RPI processor architecture) ?

Post by User_Russian »

It is impossible intel asm code, compile for ARM.
Assembler code for Intel and ARM different and need to completely rewrite the code.
User avatar
mk-soft
Always Here
Always Here
Posts: 5406
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: What compiler statement for the ARM (RPI processor architecture) ?

Post by mk-soft »

Code: Select all

CompilerSelect #PB_Compiler_Processor
    
  CompilerCase #PB_Processor_x86
    
  CompilerCase #PB_Processor_x64
    
  CompilerCase #PB_Processor_Arm32
    
  CompilerCase #PB_Processor_Arm64
    
CompilerEndSelect
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: What compiler statement for the ARM (RPI processor architecture) ?

Post by Joris »

I have been looking in the PB-help but did not see any of those for ARM, like #PB_Processor_Arm64.
I use PB6.00 beta 5 on Linux and RPI, so where did you get these from ?

@User_Russian that's why I ask for this.

Thanks mk-soft
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
mk-soft
Always Here
Always Here
Posts: 5406
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: What compiler statement for the ARM (RPI processor architecture) ?

Post by mk-soft »

The PB help will only be up to date with the release version.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply