Understanding through Discussion

Welcome! You are not logged in. [ Login ]
EvC Forum active members: 73 (8962 total)
99 online now:
AZPaul3, PaulK (2 members, 97 visitors)
Newest Member: Samuel567
Post Volume: Total: 871,062 Year: 2,810/23,288 Month: 1,001/1,809 Week: 120/313 Day: 1/36 Hour: 0/1

Thread  Details

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

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
Posts: 1153
From: Ireland
Joined: 07-16-2005

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