AMBR Virtual Machine (AVM)

in #ambr5 years ago

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)

Sort:  

Congratulations @ambr.global! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 800 comments. Your next target is to reach 900 comments.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Support SteemitBoard's project! Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.30
TRX 0.11
JST 0.033
BTC 64243.42
ETH 3152.93
USDT 1.00
SBD 4.28