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

Dashmips raises exception at running the following code #21

Open
dcordb opened this issue Sep 29, 2020 · 0 comments
Open

Dashmips raises exception at running the following code #21

dcordb opened this issue Sep 29, 2020 · 0 comments

Comments

@dcordb
Copy link

dcordb commented Sep 29, 2020

The following code runs perfectly using SPIM emulator version 8.0:

.data
	abort: .word	object_abort

.text
	object_abort:
		jr $ra

	main:
		li $v0, 10
		syscall

Yet dashmips fails to execute it, giving the following exception:

Traceback (most recent call last):
  File "/home/daniel/.pyenv/versions/cool-compiler-2020/bin/dashmips", line 8, in <module>
    sys.exit(main())
  File "/home/daniel/.pyenv/versions/3.8.5/envs/cool-compiler-2020/lib/python3.8/site-packages/dashmips/__main__.py", line 186, in main
    ret_val = prog_args.func(prog_args)
  File "/home/daniel/.pyenv/versions/3.8.5/envs/cool-compiler-2020/lib/python3.8/site-packages/dashmips/__main__.py", line 32, in main_run
    program = preprocess(args.FILE, args=args.mips_args)
  File "/home/daniel/.pyenv/versions/3.8.5/envs/cool-compiler-2020/lib/python3.8/site-packages/dashmips/preprocessor.py", line 35, in preprocess
    data_labels(labels, unprocessed_labels, memory)
  File "/home/daniel/.pyenv/versions/3.8.5/envs/cool-compiler-2020/lib/python3.8/site-packages/dashmips/preprocessor.py", line 133, in data_labels
    raise MipsException(f"Symbol {pair[1]} not found in symbol table")
dashmips.utils.MipsException: Symbol object_abort not found in symbol table

I'm using python 3.8.5 and dashmips 0.1.10. Which specification of MIPS does dashmips support? I couldn't find this info anywhere.

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