Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions rfcs/0034-vm-syscalls-2/0034-vm-syscalls-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ uint64_t ckb_current_cycles()
### Exec
[exec]: #exec

> **⚠️ Know Issues**
>
> *Exec is deprecated and not recommended to use in the VM 1.*
>
> *Under VM 1, the exec syscall can cause unexpected behavior theoretically. However, this issue does not exist in VM 2.*


Exec runs an executable file from specified cell data in the context of an already existing machine, replacing the previous executable. The used cycles does not change, but the code, registers and memory of the vm are replaced by those of the new program. It's cycles consumption consists of two parts:

- Fixed 500 cycles
Expand Down