Skip to content
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

Support for .data and .text sections #1

Open
joamag opened this issue Jan 16, 2018 · 2 comments
Open

Support for .data and .text sections #1

joamag opened this issue Jan 16, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request p-high High priority issue

Comments

@joamag
Copy link
Owner

joamag commented Jan 16, 2018

Description

Must create a separated .data section that stores a series of constant values that can be later loaded into the stack using the load instruction and a label.

The .text section is the typical one with the assembly code (default one).

Example

https://github.com/joamag/mingus/blob/master/examples/hello.mia

@joamag joamag added the feature label Jan 16, 2018
@joamag joamag self-assigned this Jan 16, 2018
@joamag joamag added enhancement New feature or request p-high High priority issue and removed feature labels Dec 29, 2020
@joamag
Copy link
Owner Author

joamag commented Jul 4, 2021

There's already very good support for the data and text sections through f74f56e

@joamag
Copy link
Owner Author

joamag commented Feb 16, 2022

What's missing to have a proper data section

  1. Register the size in bytes of the data section in the header of the file
  2. Create an hash of the data elements to know where to find them in the file
  3. Generate the data section code
  4. Make the code in the runtime VM to read the section and manage memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p-high High priority issue
Projects
None yet
Development

No branches or pull requests

1 participant