Re: Round-robin CPU scheduling emulator
dvanhorn <[email protected]>
| Newsgroups | gmane.org.ballistichelmet.lambda |
|---|---|
| Message-ID | <[email protected]> |
dvanhorn wrote: > There has got to be a better way to run this than with this silly shell > interpreter business. After all, this is a strongly typed language; let's > compile the goddamn thing. Unfortunately the interpreter was easier to do > than actually reading to docs for ocamlc to figure out how to set an entry > point for the module (if that is indeed the way to do it). So anyway, to > create the interp do: > > ocamlmktop -custom -o mocaml str.cma > > (str.cma is need for regular expressions.) Change the #! at the start of this > file to point to the mocaml file you just created. Make sure the privleges on > rr.ml include execute. Then do: > > ./rr.ml <file> So the better way to do this is to remove the #! line at the beginning and then do: ocamlc -o rr str.cma rr.ml and then ./rr <file> to run. I put some sample files up to for reference. http://www.cs.uvm.edu/~dvanhorn/ocaml/ -d