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

Proposal name progs modules #612

Open
skaller opened this issue Jan 4, 2023 · 0 comments
Open

Proposal name progs modules #612

skaller opened this issue Jan 4, 2023 · 0 comments

Comments

@skaller
Copy link

skaller commented Jan 4, 2023

In MVM assembler you can say

use.std::math::u64

begin
    push.1.0
    push.2.0
    exec.u64::checked_add
end

[From the manual]

Here std,math etc are identifiers. Notice no quotes around the names. Therefore they should be declared/defined somewhere. Hence I propose the MVM Assembler parser be modified to accept these "instructions" and initial just forget them:

  • program.name
  • module.libname.modname

For my research tool i will process files with multiple libraries, modules, and programs, all at once (because for testing, you don't want to stuff about with search paths and multiples files).

There is no library instruction, a library is formed implicitly by using multiple modules with the same libname.
MVM Assembler could enforce more stringent requirements. For example, using program.name allows to start checking for illegal exports.

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