Understanding through Discussion


Welcome! You are not logged in. [ Login ]
EvC Forum active members: 83 (8942 total)
28 online now:
Diomedes, DrJones*, RAZD, vimesey (4 members, 24 visitors)
Chatting now:  Chat room empty
Newest Member: John Sullivan
Post Volume: Total: 863,485 Year: 18,521/19,786 Month: 941/1,705 Week: 193/518 Day: 17/50 Hour: 1/4


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   Oracle Wins Ruling Against Google Over Java APIs
Son Goku
Member
Posts: 1152
From: Ireland
Joined: 07-16-2005


(1)
Message 16 of 62 (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 responded

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

  
Son Goku
Member
Posts: 1152
From: Ireland
Joined: 07-16-2005


Message 18 of 62 (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 yet responded

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2018 by EvC Forum, All Rights Reserved

™ Version 4.0 Beta
Innovative software from Qwixotic © 2019