News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

X86 on phone emulator vs native?

Started by daydreamer, December 10, 2023, 05:46:03 PM

Previous topic - Next topic

daydreamer

If you learn code on modern multicore phone native or java or Kotlin must be lot faster than emulated x86
A background process crunching numbers 24/7 on smartphone to achieve high prime number better than PC that runs same speed,but limited to user keep it on only the hours when awake, worst case keep it only on the hours awake after commuting +work hours at home + weekends

I lack Kotlin skill,only java newbie level phone app coding skill
Wonder how many have phone coding skills here?

Now when showed ARM asm code in forum, how does my 3ghz  tablet cpu run compared to 3ghz PC cpu from same year ?similar number of clock cycles per opcodes?

 
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

HSE

Quote from: daydreamer on December 10, 2023, 05:46:03 PMIf you learn code on modern multicore phone native or java or Kotlin must be lot faster than emulated x86

The most probable thing.

But Java and Kotlin are scripts for the Java Virtual Machine, very, very slow.


Quote from: daydreamer on December 10, 2023, 05:46:03 PMNow when showed ARM asm code in forum, how does my 3ghz  tablet cpu run compared to 3ghz PC cpu from same year ?similar number of clock cycles per opcodes?

Probably similar for similar process. Opcodes are not comparable (RISC vs CISC)
Equations in Assembly: SmplMath

daydreamer

On Windows X86 PC,usually if your program requires few % cpu, rest is taken up by waiting and message system
On phone I expect it more designed on circuit for touchscreen starts cpu thread when you touch screen and stops thread when stop touch it,same with sensors that sense movement
More expect cpu core is completely stopped to save energy when not needed and started when needed touchscreen and other circuits is needed
Isn't it possible to compile uasm or other assembler for phone cpu?
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

HSE

Quote from: daydreamer on December 16, 2023, 06:02:14 PMIsn't it possible to compile uasm or other assembler for phone cpu?

There is a FASM version for ARM assembly (and perhaps FASMG work, not sure). But they are cross-assemblers, must run in X86 or X64 PC, and you have to move binary to the phone.

In phone work AS (GNU Assembler). I made some little pieces in Termux, wich is a kind of ARM Linux virtual machine for phone.

In NDK there is an AS that run in PC. Some years ago I made a first ARM program using that  :biggrin: .

I don't know what tools are used in new ARM desktop machines.

Equations in Assembly: SmplMath

daydreamer

#4
Long ago i used java develop kit for android,came with very slow phone emulator that ran on pc
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding