kent logo

CO538 Anonymous Questions and Answers Keyword Index

This page provides a keyword index to questions and answers. Clicking on a keyword will take you to a page containing all questions and answers for that keyword, grouped by year.

To submit a question, use the anonymous questions page. You may find the keyword index and/or top-level index useful for locating past questions and answers.

Keyword reference for running


Question 24 (2004):

You said in the answer to Question 20 (2004):

To test `q1', just run it. It should produce the same output as the model answer.

To run a program in occam do we just type:

    kroc q1.occ


Answer 24:

Nope, `kroc' is the compiler. When you compile `q1.occ' you're left with an executable called `q1', assuming it compiled successfully. Just run it, i.e.:

    raptor$ ./q1

I'd ask what you've been doing in the terminal sessions for the last 3 weeks -- compiling and running occam programs is one of the first things we did. E.g. compiling and running the various demonstrator and example programs.

Keywords: running

Valid CSS!

Valid XHTML 1.0!

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
Last modified Mon May 20 13:50:32 2013
This document is maintained by Fred Barnes, to whom any comments and corrections should be addressed.