„Dalvik“: Munur á milli breytinga

Efni eytt Efni bætt við
Ásgeir IV. (spjall | framlög)
Ný síða: {{Hugbúnaður |nafn = Dalvik |lógó = |skjáskot = |myndatexti = |höfundur = |hönnuður = Dan Bornstein |útgáfudagur = |nýjasta útgáfa = |nýjasti útgáfudagur = |nýjasta for...
 
Ásgeir IV. (spjall | framlög)
Lína 24:
 
==Bygging==
Unlike most virtual machines and true [[Java Virtual Machine|Java VMs]] which are [[stack machine]]s, the Dalvik VM is a [[Register machine|register-based architecture]].
 
Ólíkt flestum sýndarvélum og sönnum [[Java-sýndarvél]]um sem eru [[staflavél]]ar, er Dalvik-sýndarvélin [[skráarvél]].
 
The relative merits of [[stack machine]]s vs. [[Register machine|register]]-based approaches is a subject of ongoing debate.
 
Skiptar skoðanir eru um hvor gerðin, [[staflavél]]ar eða [[skráarvél]]ar, hefur fleiri kosti<ref>{{cite web
Lína 40 ⟶ 37:
| accessdate=2009-12-22}}</ref> Generally, stack-based machines must use [[Instruction (computer science)|instructions]] to load data on the stack and manipulate that data, and, thus, require more instructions than register machines to implement the same [[High-level programming language|high level code]], but the instructions in a register machine must encode the source and destination registers and, therefore, tend to be larger. This difference is primarily of importance to VM interpreters for whom [[opcode]] dispatch tends to be expensive along with other factors similarly relevant to [[Just-in-time compilation|JIT compilation]].
 
ATól tooler callednefnist '''dx''' iser usednotað totil convert somebreyta sumum (buten notekki allöllum) Java -[[class (file format)klasi|.classklösum]]-skrám filesyfir into theá .dex format-sniðið. MultipleMargir [[Class (computer science)klasi|classesklasar]] arerúmast includedí in a singleeinni .dex file-skrá. Strengir Duplicateog stringsaðrir andfastar othersem constantsnotaðir usederu iní multiplemarg-klasa-skrám class files arekoma includedaðeins onlyfyrir onceeinu insinni theí .dex-frálagi outputtil to conservespara spacepláss. Java -[[bytecodebætakóði|bætakóða]] iser alsoeinnig convertedbreytt intoyfir aní alternateannarskonar [[instruction setskipanamengi]] used by thesem Dalvik-sýndarvélin VMnotar. An uncompressedÓþjöppuð .dex-skrá fileer isvenjulega typicallynokkrum aprósentum fewminni percent smaller in size than aen [[Data compressiongagnaþjöppun|compressedþjappað]] [[JARJava-gagnasafn (filesem format)|.jar]]leitt (Javaer Archive)út derivedfrá from the samesömu .class files-skrám.<ref>{{cite web
| url=http://sites.google.com/site/io/dalvik-vm-internals/2008-05-29-Presentation-Of-Dalvik-VM-Internals.pdf?attredirects=0
| title=Presentation of Dalvik VM Internals
Lína 72 ⟶ 69:
| date=2009-04-13
| accessdate=2009-04-19}}</ref>
 
== Tilvísanir ==
{{Reflist}}