I wrote the majority of my MIPS code for sprintf.s, and I tried loading the
two .s files to see if it would run at all. Upon loading I am receiving
parser errors on practically every line and I cannot make sense of what's
going on. I even used the template on the server for sprintf.s and the first
line of that template is causing an error as well. Here are the first three
errors, and unknown character errors go on throughout my code. Am I
forgetting something?
spim: (parser) Unknown character on line 1 of file sprintf.s
.text
^
spim: (parser) Unknown character on line 2 of file sprintf.s
^
spim: (parser) Unknown character on line 3 of file sprintf.s
sprintf:
If someone has an idea what's up I would greatly appreciate some help.
Thanks.
- Bobby
./runMe.sh: Exec format error. Binary file not executable.
Could you explain more of what this does and how this is supposed to help
us?
Daniel
"[TA] Jeremy Huddleston" <cs61...@cory.eecs.berkeley.edu> wrote in message
news:pan.2004.02.28....@cory.eecs.berkeley.edu...
> Here's how we're testing it (using spim rather than xspim):
>
> Create a file called 'runMe.sh' with this contents:
> --begin
> #! /usr/local/bin/bash
> tempFile=`basename $1`.$$.s
> cat $1 sprintf.s > $tempFile
> spim -file $tempFile
> rm $tempFile
> --end
>
> Set it executable:
> $ chmod 755 runMe.sh
>
> Then use it to test out specific spf-main.s files:
> $ ./runMe.sh spf-main.s
>
> --Jeremy
Daniel
"[TA] Jeremy Huddleston" <cs61...@cory.eecs.berkeley.edu> wrote in message
news:pan.2004.02.28....@cory.eecs.berkeley.edu...
> It's just a simple script to help you test out different spf-main.s files
> with your sprintf.s file.
>
> Create a file (emacs or whatever) and call it runMe.sh
> Put the contents between '--begin' and '--end' in that file.
> Set it executable (chmod 755 runMe.sh)
> Run the command passing in the spf-main.s file you want to test as an
> arguement (./runMe.sh spf-main.s)
>
> It just concatenates your two .s files into one temporary .s file which it
> runs through spim.
>
> --Jermey
- Bobby
"Dan Kim" <d...@uclink.berkeley.edu> wrote in message
news:c1pou6$2181$1...@geode.berkeley.edu...
Daniel
"Robert Gregg" <bob...@uclink.berkeley.edu> wrote in message
news:c1r52l$1u59$1...@agate.berkeley.edu...
I've been using emacs from the start (actually I started on notepad and
moved over to emacs)... and all the time I was using that I was getting the
anomaly parser errors.
I figured maybe it was something with how emacs saves or formats the .s
file. So I loaded my sprintf.s using pico, made some irrelevant change,
saved it, and lo and behold: no more parser errors!
So if they are annoying you, try loading your file in pico and save it.
- Bobby
"Robert Gregg" <bob...@uclink.berkeley.edu> wrote in message
news:c1oq88$19pi$1...@agate.berkeley.edu...
dos2unix FileThatWindowsB0rked.s > CoolUnixFile.s
This is all conjecture on my part, though.
//imran
"Robert Gregg" <bob...@uclink.berkeley.edu> wrote in message
news:c1s0lv$275a$1...@agate.berkeley.edu...
-alex
"Imran Haque" <cs61...@imail.eecs.berkeley.edu> wrote in message
news:c1s0v4$27ai$1...@agate.berkeley.edu...
> read the post about text editing in dos vs unix a while back by edward
> lee...
>
> if you are editing on pc then uploading your code, it will include extra
> characters \r, instead of just \n like on unix
> use the unix tool:
>
> dos2unix pc-formattedfile.s > unixfile.s
>
> make sure they are different filenames
>
> jonathan tsai
>
"Robert Gregg" <bob...@uclink.berkeley.edu> wrote in message
news:c1oq88$19pi$1...@agate.berkeley.edu...
Thanks,
Rob
"li sun" <cs61...@cory.EECS.Berkeley.EDU> wrote in message
news:c1s7lv$28pf$1...@agate.berkeley.edu...
> is there any other way to fix it? i got the same problem too! upset!
> thank you!
>
>
> In article <pan.2004.02.28....@cory.eecs.berkeley.edu>, "[TA]
"N1><0N" <rvan...@berkeley.edu> wrote in message
news:c23h60$vq$1...@geode.berkeley.edu...
"Jonathan Tsai" <cs61...@cory.eecs.berkeley.edu> wrote in message
news:c1tl90$70p$1...@geode.berkeley.edu...