Understanding through Discussion


Welcome! You are not logged in. [ Login ]
EvC Forum active members: 79 (9006 total)
49 online now:
kjsimons (1 member, 48 visitors)
Newest Member: kanthesh
Post Volume: Total: 881,254 Year: 13,002/23,288 Month: 727/1,527 Week: 28/138 Day: 1/27 Hour: 0/0

Announcements: Topic abandonment warning (read and/or suffer the consequences)


Thread  Details

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


(1)
Message 16 of 64 (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: 1164
From: Ireland
Joined: 07-16-2005
Member Rating: 7.9


Message 18 of 64 (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 © 2020