# 4.1 全面兼容EVM

DxChain 3.0能够全面兼容EVM以太坊虚拟机（Eetheruem Virtual Machine，EVM），支持编译和执行智能合约，并支持各版本的Solidity语言。

以太坊虚拟机是一个图灵完备的状态机，是用于执行交易或者合约代码的引擎。由于合约像众多的应用程序一样可以完成比较复杂的逻辑功能，而EVM支持循环操作指令，任何复杂设想的程序都得以顺利运行。EVM为合约提供了一个安全的运行环境，每个合约都有其独立的运行时堆栈，EVM栈最大支持1024个元素，每个元素为256bit。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dxchain.gitbook.io/dxchain-wiki/zhong-wen-she-qu/dxchain-v3-ji-shu-wen-dang/4.-ji-shu-de-she-ji-yuan-li-yu-jia-gou/4.1-quan-mian-jian-rong-evm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
