vm-implementation Questions

2

Solved

Does the .NET's Virtual Machine compiles the CIL bytecode (and then execute the code at the lowest level - CPU assembler), or it is an interpreter (that reads the following instructions and execute...
Schlesien asked 18/7, 2010 at 11:42

9

Solved

I'm looking at writing a JIT compiler for a hobby virtual machine I've been working on recently. I know a bit of assembly, (I'm mainly a C programmer. I can read most assembly with reference for op...
Rwanda asked 27/1, 2011 at 4:53

9

Solved

I am studying Assembly programming in general, so I've decided to try and implement a "virtual microprocessor" in software, which has registers, flags and RAM to work with, implemented with variabl...

3

Preamble This is about improving message send efficiency in a JIT compiler. Despite referring to Smalltalk, this question applies to most dynamic JIT-compiled languages. Problem Given a message...

3

Solved

Both of them pretty much do the same thing. Identify that the method is hot and compile it instead of interpreting. With OSR, you just move to the compiled version right after it gets compiled, unl...
Hadlock asked 2/2, 2012 at 0:29

4

Solved

I have a question about Interpreters, Compilers, and Virtual Machines (VMs). Now I know the differences between Interpreters and Compilers but what is different about the VIRTUAL MACHINES from the ...
Carnallite asked 3/2, 2013 at 22:26

1

Since the rising popularity of JavaScript, I found it intriguing to hear (even during the same speech) either about JavaScript engine, or about JavaScript virtual machine, or JavaScript interpreter...

2

Solved

I am going to learn a little bit about Dalvik VM, dex and Smali. I have read about smali, but still cannot clearly understand where its place in chain of compilers. And what its purpose. Here some...
Lungworm asked 15/6, 2015 at 4:39

6

Options 1: boolean isFirst = true; for (CardType cardType : cardTypes) { if (!isFirst) { descriptionBuilder.append(" or "); } else { isFirst = false; } //other code not relevant to this t...

2

Solved

Someone could point out sites/books where I can find introductory documentation about the architecture of the Python VM? I'm interested in the C version, but if there are easy-to-follow ref...
Cheesecloth asked 25/3, 2009 at 17:42

2

Solved

I was thinking that JIT compilers will eventually beat AOT compilers in terms of the performance of the compiled code, due to the inherent advantage of JIT (can use information available only at ru...
Contumelious asked 29/9, 2011 at 0:28

5

Solved

I am currently trying to dig deeper into the specification of the Java Virtual Machine. I have been reading Inside the JVM book online and there is one confusing abstraction I can't seem to grasp: ...
Slab asked 18/4, 2012 at 13:3

4

I read Regular Expression Matching: the Virtual Machine Approach and now I try to parse a regular expression and create a virtual machine from it. The tokenizer works and creates its tokens. After ...
Elsey asked 22/5, 2015 at 13:13

4

Don't be shocked. This is a lot of text but I'm afraid without giving some detailed information I cannot really show what this is all about (and might get a lot of answers that don't really address...
Instal asked 9/6, 2009 at 20:53

1

I'm trying to implement a regular expression matcher based on the backtracking approach sketched in Exploring Ruby’s Regular Expression Algorithm. The compiled regex is translated into an array of ...
Interfere asked 31/7, 2019 at 13:31

8

Solved

I'm interested in implementing a Forth system, just so I can get some experience building a simple VM and runtime. When starting in Forth, one typically learns about the stack and its operat...
Abb asked 2/1, 2009 at 20:52

3

Solved

As Oracle sues Google over the Dalvik VM it becomes clear, that you cannot implement a Java VM without license from Oracle (EDIT: Matthew Flaschen points out, that the claims of Oracle may not be v...
Dunk asked 30/8, 2010 at 13:29

3

Solved

I would like to observe the Ruby bytecode executed by YARV, post mortem. How can I get this ? Someone else here told it was not possible. However, there is the hotruby framework that seems to exe...
Radioscopy asked 1/8, 2011 at 9:4

6

Solved

I want self-education purpose implement a simple virtual machine for a dynamic language, prefer in C. Something like the Lua VM, or Parrot, or Python VM, but simpler. Are there any good resources/t...
Submit asked 9/1, 2010 at 18:30

1

Solved

I need to allocate large blocks of memory (to be used by my custom allocator) that fall within the first 32GB of virtual address space. I imagine that if I needed, say, 1MB blocks, I could iterate...

2

Preamble Forth, through the few manuals I've read, is often defined in extremely low-level terms, typically in assembly. Defining Forth in this way is extremely counter-intuitive for understanding...

2

Solved

What are some fundamental Feature/Architectural difference between the BEAM and JVM? Yes I know: one was originally built around java and the other built around erlang I understand the JVM (somew...
Oulman asked 16/2, 2010 at 21:11

6

Solved

Hopefully this question won't be too convoluted or vague. I know what I want in my head, so fingers crossed I can get this across in text. I'm looking for a language with a syntax of my own specif...
Sherrillsherrington asked 20/4, 2011 at 12:5

3

Solved

Hello everyone I'm currently implementing a simple programming language for learning experience but I'm in need of some advice. Currently I'm designing my Interpreter and I've come into a problem. ...
Gammer asked 21/7, 2010 at 1:43

3

Virtual Machines are used for running apps on different OS(Java compiles code into OS independent .class files which is interpreted into bytecode). Since android apps run on the same OS (i.e Androi...
Neologize asked 28/3, 2012 at 18:39

© 2022 - 2024 — McMap. All rights reserved.