General purpose instructions for bytes #49
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mighty-gerbils/gerbil-ethereum#49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of https://gitlab.com/mukn/glow/-/issues/80.
Features
Batch 1 (Merged: https://github.com/fare/gerbil-ethereum/pull/46)
Batch 2 (WIP: https://github.com/fare/gerbil-ethereum/pull/50)
mstoreat,mloadat.For example, given a
Bytestringwith aUInt64length,during compile time we do not know the actual length / contents of the bytestring.
instead we generate instructions to store the length:
- on stack is just takes up a slot.
- in memory it takes up 8bytes.
And use it to decode the contents:
- LOAD:
Use the offset and length on stack to retrieve the entire bytestring from memory
- STORE:
Use length on stack to store bytestring in memory
Batch 3
.evm<-method for marshalling data to EVM.Batch 4