-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hint AllocConstantSize #106
Conversation
I am not sure what exactly is |
…nto hint-alloc-constant-size merge main branch
…int-alloc-constant-size merging main branch and resolving conflicts
Hi @rodrigo-pino below is from the Cairo Mono Repo
and the __boxed_segment seems to handle the memory segment
or using two segments
|
Python VM investigating furthermore, in the Cairo-lang project, The relocate_segments function then uses this size information to move segments while preserving their respective sizes, reinforcing the fixed-size behavior of each segment. it assigns each memory segment a new address in memory, making sure that each segment retains its allocated size
|
Closed. This issue will be handled with different PR |
implementing AllocConstantSize hint.
And corresponding test code for that.
Accordingly below follow-up was implemented
memory.go - AllocateEmptySegmentOfSize function
memory_test.go - TestAllocateEmptySegmentOfSize