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

Store data type size in the symtable #6

Open
MatthewKosloski opened this issue Jul 17, 2021 · 0 comments
Open

Store data type size in the symtable #6

MatthewKosloski opened this issue Jul 17, 2021 · 0 comments
Labels
feature New feature or request

Comments

@MatthewKosloski
Copy link
Owner

Currently, when creating the stack, we multiply the number of temporary variables used by 8 bytes (see here). It would be better if the stack size was dynamically calculated instead of statically hard-coding the 8-byte multiple. Also, in the future, we may support additional data types that require more space. Thus, it would be better if the symbol table stored data type size information (see page 970 of the Dragon Book).

@MatthewKosloski MatthewKosloski added the feature New feature or request label Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant