AMBR Global avatar

AMBR Virtual Machine (AVM)

ambr.global

Published: 05 Feb 2019 › Updated: 05 Feb 2019AMBR Virtual Machine (AVM)

AMBR Virtual Machine (AVM)

avm.png

Based on the stack structure, the machine's word size (and the size of the data in the stack) is 256 bits. Mainly to facilitate the implementation of Keccak-256 hash and elliptic curve calculations. The memory model is based on word addressed byte data. The running model is based on a thread stack with a maximum stack depth of 1024. AVM also has a separate memory model; similar to memory but more like a byte array, a word-based word array. Unlike variable memory, storage is non-volatile and is maintained as part of the system state. All memory and storage data is initialized to 0.

AVM is not a standard Neumann structure. The program code is saved in a virtual, interactive ROM through a special instruction, instead of in general accessible memory or storage. AVM can cause exceptions in some situations, including stack overflows and illegal instructions. When an exception occurs, AVM immediately stops and informs the execution agent (the transaction's processor, or execution environment) to handle the exception separately.

The virtual machine is a database engine and is the operating environment for smart contracts. Contract code runs inside the virtual machine and is completely isolated from the outside world. The virtual machine itself is not stored in the blockchain, but distributed and stored on each node's computer.

The Ambr Virtual Machine (AVM) is based on the stack structure and is mainly used to perform Keccak-256 hash and elliptic curve calculations. AVM also has a separate storage model, similar to memory but more like a byte array. AVM is not a standard Neumann architecture, and stores program code in a virtual, interactive ROM through a special instruction. AVM also has its own language: AVM bytecode. When an abnormality occurs, AVM will immediately halt execution and inform the agent to handle the exception separately.

Ambr's AVM virtual machine is partially compatible with some of the EVM features. It is based on the ETH smart contract, upgraded to be more efficient and practical, to solve the problem of DAG's consistency with smart contracts.

#ambr #vocabulary #bitcoin #cryptocurrency #ethereum #DAG

avm.png

🔥Our Social Media Channels🔥
Twitter:
https://twitter.com/AmbrGlobal

Facebook:
https://www.facebook.com/Ambr.Global.Blockchain

GitHub:
https://github.com/Ambr-org/Ambr

SteemIT:
https://steemit.com/@ambr.global

Bitcointalk ANN:
https://bitcointalk.org/index.php?topic=5080890

Reddit:
https://www.reddit.com/user/AmbrGlobal

Instagram:
https://www.instagram.com/ambr.global

Medium:
https://medium.com/@ambr.global

Telegram:
https://t.me/AmbrGlobal2

Telegram Developers Community:
https://t.me/AmbrGlobal
(only for developers)

Leave AMBR Virtual Machine (AVM) to:

Written by

The World's First DAG-based smart contract platform.

Read more #ambr posts


Best Posts From AMBR Global

We have not curated any of ambr.global's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From AMBR Global