Discussion:
How to run MIPS code in OSX?
(too old to reply)
Aaron Staley
2005-09-29 05:04:24 UTC
Permalink
I am on OSX, and I am currently using the Terminal for emacs and such, and now
that I'm working on HW3, i need some way to run MIPS code that I'm writing.
I've tried logging in and typing xspim into X11, but I get an error saying it
"can't load display". Is there a way to get xspim working in OSX, or is there
another app I should try downloading?
http://www.cs.wisc.edu/~larus/spim.html
[TA] Jeremy Huddleston
2005-09-29 19:10:41 UTC
Permalink
I am on OSX, and I am currently using the Terminal for emacs and such, and now
that I'm working on HW3, i need some way to run MIPS code that I'm writing.
I've tried logging in and typing xspim into X11, but I get an error saying it
"can't load display".
export DISPLAY=:0

I like using rxvt instead of the OSX terminal, so you might want to look
into that as well...
Is there a way to get xspim working in OSX, or is there
another app I should try downloading?
[TA] Jeremy Huddleston
2005-10-06 20:51:06 UTC
Permalink
Am I supposed to type "export DISPLAY=:0" after I've logged in? If so... it
doesn't seem to recognize the command.
If you use xterm or rxvt from X, it should be set for you automatically.
If you want to use the OSX terminal instead, you need to set your DISPLAY
variable. Just use xterm to make your life easier. It is started
automatically when you start X (unless you disabled that by editing
your startup scripts in /etc/X11/).
[TA] Michael Le
2005-10-08 22:56:50 UTC
Permalink
Try adding -X flag to your ssh call.

% ssh -X -l cs61c-fq nova.cs.berkeley.edu

-X says to use X11 forwarding, which may be why you get that error.

~Michael
Post by [TA] Jeremy Huddleston
Am I supposed to type "export DISPLAY=:0" after I've logged in? If so... it
doesn't seem to recognize the command.
If you use xterm or rxvt from X, it should be set for you automatically.
If you want to use the OSX terminal instead, you need to set your DISPLAY
variable. Just use xterm to make your life easier. It is started
automatically when you start X (unless you disabled that by editing
your startup scripts in /etc/X11/).
I have actually tried using xterm as well, and when i ssh in, and try to launch
xspim, i still get the "Error: Can't open display: " problem.
[TA] Jeremy Huddleston
2005-10-11 18:03:33 UTC
Permalink
I have actually tried using xterm as well, and when i ssh in, and try to launch
xspim, i still get the "Error: Can't open display: " problem.
oh, I see... your problem is you're trying to run xspim on the inst
machines. You should just compile it locally, but if you don't want to do
that, you need to make sure you tunnel X11 back to your machine. Use 'ssh
-X cs61c-***@quasar.cs.berkeley.edu'

--Jeremy

[TA] Jeremy Huddleston
2005-09-29 19:11:20 UTC
Permalink
Post by Aaron Staley
I am on OSX, and I am currently using the Terminal for emacs and such, and now
that I'm working on HW3, i need some way to run MIPS code that I'm writing.
I've tried logging in and typing xspim into X11, but I get an error saying it
"can't load display". Is there a way to get xspim working in OSX, or is there
another app I should try downloading?
http://www.cs.wisc.edu/~larus/spim.html
UCB spim is a bit different than the latest upstream release, so not
everythig will work as expected.

--Jeremy
Aaron Staley
2005-09-30 00:39:23 UTC
Permalink
Just wondering how they could differ?
After all, MIPS is MIPS - and MIPS is most simple.
Post by [TA] Jeremy Huddleston
Post by Aaron Staley
I am on OSX, and I am currently using the Terminal for emacs and such, and now
that I'm working on HW3, i need some way to run MIPS code that I'm writing.
I've tried logging in and typing xspim into X11, but I get an error saying it
"can't load display". Is there a way to get xspim working in OSX, or is there
another app I should try downloading?
http://www.cs.wisc.edu/~larus/spim.html
UCB spim is a bit different than the latest upstream release, so not
everythig will work as expected.
--Jeremy
Continue reading on narkive:
Loading...