Skip to content

Commit

Permalink
Document memory alignment (#15586)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSandwich authored Nov 29, 2024
1 parent 1cce974 commit 311e8db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/assembly.rst
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ starting from where this pointer points at and update it.
There is no guarantee that the memory has not been used before and thus
you cannot assume that its contents are zero bytes.
There is no built-in mechanism to release or free allocated memory.
Solidity does not guarantee and does not require that the values in memory
are placed at positions aligned to a multiple of any value.
Here is an assembly snippet you can use for allocating memory that follows the process outlined above:

.. code-block:: yul
Expand Down

0 comments on commit 311e8db

Please sign in to comment.