Skip to content

Commit

Permalink
doc: Update runtime memory information
Browse files Browse the repository at this point in the history
  • Loading branch information
xxuejie committed Dec 6, 2019
1 parent 06e9963 commit f876726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rfcs/0003-ckb-vm/0003-ckb-vm.md
Expand Up @@ -21,7 +21,7 @@ CKB relies on dynamic linking and syscalls to provide additional capabilities re

CKB leverages 64-bit RISC-V virtual machine to run contracts. We provide the core instructions in 64-bit address space, with additional integer multiplication/division extension instructions. CKB also supports RISC-V Compressed Instructions to reduce contract size. For maximum tooling and debugging support, CKB leverages Linux ELF format directly as contract format.

Each contract has a maximum size of 10MB in uncompressed size, and 1MB in gzip size. CKB virtual machine has a maximum of 16 MB runtime memory for running contracts. VM's runtime memory provides space for executable code pages mapped from contracts, stack space, head space and mmapped pages of external cell.
CKB virtual machine has a maximum of 4 MB runtime memory for running contracts. VM's runtime memory provides space for executable code pages mapped from contracts, stack space, head space and mmapped pages of external cell.

Running a contract is almost the same as running an executable in single core Linux environment:

Expand Down

0 comments on commit f876726

Please sign in to comment.