Page 1 of 1

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

Posted: Thu Mar 10, 2022 12:52 pm
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

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

Posted: Thu Mar 10, 2022 2:28 pm
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.

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

Posted: Thu Mar 10, 2022 6:42 pm
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

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

Posted: Fri Mar 11, 2022 9:22 am
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

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

Posted: Fri Mar 11, 2022 1:31 pm
by mk-soft
The PB help will only be up to date with the release version.