It's UWAweek 10 (1st semester, week 2)


This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 2 other people reading this forum.

 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

5:30pm Thu 7th Sep, Christopher M.


I have a question about the project. In the code, you have defined some constants like #define MAX_DEVICES 4 and #define MAX_COMMANDS 10. Does this mean that the maximum number of devices and commands in the sysconfig file is 4 and 10 respectively? If so, how should we handle the case when the sysconfig file contains more than 4 devices or 10 commands? Should we stop the program or ignore the extra devices or commands?

They are constants defining the characteristics/limits of the computer system we're emulating. You will likely choose to use the values to define the maximum size of the data-structures that you define for your project.

The project description clearly states "We may assume that the format of the sysconfig [and commands] file will always be correct, and its data values consistent, so we do not need to check for errors." Input files exceeding these limits are invalid.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy