Skip to content
This repository was archived by the owner on Feb 3, 2020. It is now read-only.
This repository was archived by the owner on Feb 3, 2020. It is now read-only.

Dynamic Memory Allocator #25

Description

@sunjay

This is the beginning of being able to have dynamically allocated objects in brain (instead of the static things we have now).

We need a malloc-esque API for memory allocation (without the downsides)

Once we have this kind of "heap" memory, not every type will be copy anymore. The code generation will need to be fixed to only copy when it is appropriate.

The heap could start at the index before 0 since all static allocation happens to the right of that and the Brainfuck tape is infinite in both directions.

Resources:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions