School of Physics, Mathematics, and Computing 
Not logged in (login)
help2002

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.

How do I ask a good question?
 

Final examination information
Options:
RSS cloud
Jump to:

There are 30 articles from this anonymous person

30 of 951 articles shown, currently no other people reading this forum.

UWA week 42 - 2nd semester, week 12

photo Re: Sample solution output -h (all 4)
Mon 18th Oct 2021, 3:41pm, ANONYMOUS  O.P.
Works correctly now, thanks
photo Sample solution output -h (all 4)
Mon 18th Oct 2021, 12:58pm, ANONYMOUS
The sample solution seems to not be working for my use of -h. Despite my program outputting as expected and described in the project description. Using the same hash on the sample solution doesn't output results. with filename being the path of the file...
photo Re: Command line options (both)
Mon 18th Oct 2021, 12:44pm, ANONYMOUS
Options before directory, as is standard for all command line commands
photo Option -f -h Exit Status when no duplicate of file.
Mon 18th Oct 2021, 12:32pm, ANONYMOUS
Hi, Just curious what circumstances for EXIT_FAILURE and EXIT_SUCCESS, particularly for -f and -h. Do we EXIT_FAILURE when there is only one matching file (no duplicates, unique). For example, in the case of -h, we would print the unique file, but with -f,...

UWA week 37 - 2nd semester, week 7

photo Re: Writing to main memory from cache (all 10)
Fri 17th Sep 2021, 4:15pm, ANONYMOUS
Wouldn't the safest course just be to not write it back??? if it's useless what is the point of writing the data back to main?
photo Re: Writing to main memory from cache (all 10)
Thu 16th Sep 2021, 9:01pm, ANONYMOUS
I do see you reply to this question in this thread: https://secure.csse.uwa.edu.au/run/help2002?p=np&a=464 But it's very brief and doesn't really seem to clarify the question, was hoping you could expand on it?
photo Re: Writing to main memory from cache (all 10)
Thu 16th Sep 2021, 7:54pm, ANONYMOUS
Just to expand this question. If all locations are initialised dirty, and the process for dirty locations is to write-back the current value to memory and replace the current value in the cache location with the new value. During the initialisation (first...
photo Re: Cache Questions (all 8)
Thu 16th Sep 2021, 3:39pm, ANONYMOUS  O.P.
I appreciate your replies so far. That explains my current implementation achieving it's 2 hits. However, this doesnt explain where the other 2 hits would come from in a simple empty program like basic.cool, at least with my understanding
photo Re: Cache Questions (all 8)
Thu 16th Sep 2021, 3:08pm, ANONYMOUS  O.P.
By data I was referring to the numeric values held by the addresses. However, this still raises the question on how basic.cool can achieve 4 hits if there are only 2 instances of an address being repeated
photo Re: Cache Questions (all 8)
Thu 16th Sep 2021, 2:34pm, ANONYMOUS  O.P.
I'm confused how it is based on addresses, is it based purely off matching addresses? because for example the basic.cool sample solution provides 4 cache hits, whilst theres only 2 instances of an address being repeated. Whilst there are 4 instances of...
photo Cache Questions (all 8)
Wed 15th Sep 2021, 8:20pm, ANONYMOUS
Hi Chris, Read through a few textbooks topics on cache and while it helped give an understanding of differing types of cache, their inner-workings and real world application, it's a struggle to convert the bloated wall of texts that dive into much more...
photo Re: Marking (all 4)
Wed 15th Sep 2021, 6:34pm, ANONYMOUS
So to confirm, if we have all instructions working without cache, however, are struggling to implement cache with our own cache breaking statistics. We are better off ommitting attempted cache implementation and instead just submitting without, to recieve...
photo Implementation of Cache, Pointers Necessary? (both)
Wed 15th Sep 2021, 11:26am, ANONYMOUS
Hi, I'm attempting to implement cache and I'm not sure what the best course of action is to implement cache. My understanding is it would need to be an array, holding each word (data) previously used up to 32. However, I am lost as to how to allow for...
photo Re: Main memory reads not showing on coolc website when uploading own file (all 5)
Tue 14th Sep 2021, 10:58am, ANONYMOUS  O.P.
Ahh yes, the problem was the ommittance of a newline character. Strange because it was not necessary a week ago..
photo Re: Main memory reads not showing on coolc website when uploading own file (all 5)
Mon 13th Sep 2021, 12:33pm, ANONYMOUS  O.P.
Doing some investigating, it is directly linked to print. Main memory reads does not show when using printi or prints instruction
photo Main memory reads not showing on coolc website when uploading own file (all 5)
Mon 13th Sep 2021, 12:21pm, ANONYMOUS
Hi, Just came back from the break and weirdly, when I upload my own cool files to the website the main memory reads statistic is missing, despite it being present from the provided examples on the website. This was not the case before the break, perhaps...

UWA week 35 - 2nd semester, week 6

photo Re: prints instruction (all 12)
Fri 3rd Sep 2021, 1:37pm, ANONYMOUS  O.P.
I appreciate your help so far. But I'm not sure how to extract 2 values from a 5 digit number, as well as it not being subscriptable.
photo Re: prints instruction (all 12)
Fri 3rd Sep 2021, 9:30am, ANONYMOUS  O.P.
If one address holds the two characters and indexing it provides the one char, I'm lost to how we are meant to access that second byte / char from the words stored.
photo Re: prints instruction (all 12)
Thu 2nd Sep 2021, 4:48pm, ANONYMOUS  O.P.
It seems the saved addresses is half the size of the string, perhaps linked to a word being a pair of 2 successive bytes, considering iterating through the addresses prints every even char.
photo prints instruction (all 12)
Thu 2nd Sep 2021, 4:22pm, ANONYMOUS
Hi, Stuck on printing a string. Confused how the string is held in the memory, looking at the coolc webpage confuses me further as integers are held at the addresses.. is the itoa() func needed, not sure what to base the integer conversion off, I've tried...
photo Re: Sample solution output without cache (all 4)
Wed 1st Sep 2021, 10:06am, ANONYMOUS  O.P.
You're a legend, many thanks.
photo Sample solution output without cache (all 4)
Tue 31st Aug 2021, 5:18pm, ANONYMOUS
Hi, Originally your sample solution did not had cache which helped with debugging before our own implementation of cache (which seems to be the last step). Was curious if you could additionally have a statistic output of the reads and write (with no cache...
photo Re: Uploading file to cool.c Website (all 6)
Tue 31st Aug 2021, 1:32pm, ANONYMOUS  O.P.
Found a solution. Problem seems to be you cant create a text file, write in it and then save it as .cool , you have to directly create the .cool file with VIM and write in it through that.
photo Re: Uploading file to cool.c Website (all 6)
Tue 31st Aug 2021, 12:52pm, ANONYMOUS  O.P.
Apologies I forgot to reference my latest .cool file... it still results in the same blank page though.. I've tried with: print('a'); print("a"); print 'a'; print "a";
photo Uploading file to cool.c Website (all 6)
Tue 31st Aug 2021, 12:42pm, ANONYMOUS
Hi, In my lab today, I tried to upload a .cool file into the website but it resulted in a blank page, with seemingly nothing being inputted. My partner also attempted but got the same result. We tried chrome, safari, firefox. Lab facilitator tried on the...

UWA week 33 - 2nd semester, week 4

photo Re: Creating alias in docker container? (all 3)
Tue 17th Aug 2021, 1:29pm, ANONYMOUS  O.P.
I realised I am not using the source command, apologies.. Not sure how to delete the post so if an admin can that would be great.
photo Creating alias in docker container? (all 3)
Tue 17th Aug 2021, 1:11pm, ANONYMOUS
Hi, I'm curious how to go about creating an alias in a docker container. Using bash profile or rc it works during the session I create the alias, however, successive uses of the container cause the system to seemingly remove the alias. Anyone figured out...

UWA week 32 - 2nd semester, week 3

photo Re: The use of Linux (and vim) and it's role in the unit (all 3)
Mon 9th Aug 2021, 11:15am, ANONYMOUS  O.P.
Really appreciate the detailed reply, thank you

UWA week 31 - 2nd semester, week 2

photo The use of Linux (and vim) and it's role in the unit (all 3)
Tue 3rd Aug 2021, 1:23pm, ANONYMOUS
Hi, hope all is well. I was curious what role linux has in this unit, So far I have completed the workshop and first lab with no problems inside my existing macOS in Terminal. Will later parts of the unit require us to run Linux inside docker to achieve...

UWA week 30 - 2nd semester, week 1

photo Friday Workshop (all 4)
Wed 28th Jul 2021, 9:51am, ANONYMOUS
Hi, I see this friday being referred to a "workshop" but CAS shows it as a 1 hour LecTute. Will this friday be the only "workshop" in replacement of the LecTute or will there be a workshop every friday and it is currently labelled incorrectly? Also will...
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  4:54pm Oct 24 2021