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 Multifile #62

Open
m1n1 opened this issue Mar 3, 2021 · 1 comment
Open

Support Multifile #62

m1n1 opened this issue Mar 3, 2021 · 1 comment

Comments

@m1n1
Copy link
Contributor

m1n1 commented Mar 3, 2021

No description provided.

@m1n1
Copy link
Contributor Author

m1n1 commented May 6, 2021

This is now supported since 6abdc2d and c79004c

To import a file use .import /folder/file.s from your main file. In the imported file you have to expose the labels to use with .globl exampleLabel. See also https://cs61c.org/fa19/labs/lab04/#transitioning-to-more-complex-risc-v-programs

On Windows only relative paths are available.
On Unix Both local and relative paths are available.

.import /folder/file.s //Relative import
.import <home/user/LinuxVM/riscv/file.s> //Absolute import

Before this is closed I think we need to do following:

  • Test on MacOS
  • Generally Test on more devices. So far only tested on local Windows Machine and Linux VM. Reading from Filesystems can always lead to errors due to different Permissions, System settings, and OS.
  • Decide if Absolute Paths are necessary. If yes implement them on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant