Register | Sign In


Understanding through Discussion


EvC Forum active members: 64 (9163 total)
5 online now:
Newest Member: ChatGPT
Post Volume: Total: 916,419 Year: 3,676/9,624 Month: 547/974 Week: 160/276 Day: 34/23 Hour: 1/3


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   Oracle Wins Ruling Against Google Over Java APIs
Son Goku
Inactive Member


(1)
Message 16 of 67 (831049)
04-11-2018 2:53 PM
Reply to: Message 10 by Percy
04-04-2018 6:29 PM


I can't tell what you're saying here. Class files are source. Dex files are compiled Java on Android.
If it's any help, I think NoNukes is referring to the .class files, compiled from the source .java files. The .class files then contain the JVM bytecode.
Instead, there is some kind of "dex" format that Google created for technical reasons related to deployment on mobile platforms.
Basically the standard JVM is a stack-based machine, so it is quite abstracted from the underlying hardware. Dalvik on older Android systems was a register-based machine and hence closer in operation to the underlying hardware, so it was more efficient. The bytecode has to be different, since it is a different machine, hence the different file type.
Dalvik itself has been replaced by the Android Runtime, which is essentially an even more modified JVM that keeps the APIs in Dex format, but the actual method bodies are compiled into native code that is linked into the VM.

This message is a reply to:
 Message 10 by Percy, posted 04-04-2018 6:29 PM Percy has replied

Replies to this message:
 Message 17 by NoNukes, posted 04-11-2018 2:59 PM Son Goku has replied
 Message 20 by Percy, posted 04-11-2018 9:42 PM Son Goku has not replied

  
Son Goku
Inactive Member


Message 18 of 67 (831069)
04-11-2018 4:17 PM
Reply to: Message 17 by NoNukes
04-11-2018 2:59 PM


Nicely explained. I was trying to avoid going into the technical reasons, but you did a great job here.
Thanks, I suspected you knew and were being brief. I've only been reading this recently. I actually found it really hard to find out exactly what the Android runtime is.

This message is a reply to:
 Message 17 by NoNukes, posted 04-11-2018 2:59 PM NoNukes has not replied

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2023 by EvC Forum, All Rights Reserved

™ Version 4.2
Innovative software from Qwixotic © 2024