Skip to content

Commit a78a2bc

Browse files
author
Leo
authored
Merge pull request #13374 from 0xpranay/patch-2
Update the default free memory pointer in Yul.rst
2 parents 1b8d7aa + 60d513c commit a78a2bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/yul.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,7 @@ An example Yul Object is shown below:
11621162
code {
11631163
function allocate(size) -> ptr {
11641164
ptr := mload(0x40)
1165+
// Note that Solidity generated IR code reserves memory offset ``0x60`` as well, but a pure Yul object is free to use memory as it chooses.
11651166
if iszero(ptr) { ptr := 0x60 }
11661167
mstore(0x40, add(ptr, size))
11671168
}
@@ -1191,6 +1192,7 @@ An example Yul Object is shown below:
11911192
code {
11921193
function allocate(size) -> ptr {
11931194
ptr := mload(0x40)
1195+
// Note that Solidity generated IR code reserves memory offset ``0x60`` as well, but a pure Yul object is free to use memory as it chooses.
11941196
if iszero(ptr) { ptr := 0x60 }
11951197
mstore(0x40, add(ptr, size))
11961198
}

0 commit comments

Comments
 (0)