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?
 
Options:
RSS cloud
Jump to:

There are 28 articles from this anonymous person

28 of 1097 articles shown, currently no other people reading this forum.

UWA week 43 - 2nd semester, study break

photo Re: 2019 question 6a (all 5)
Thu 28th Oct 2021, 9:53am, ANONYMOUS  O.P.
what if I change thoese two into 1.Loops in program cause the CPU to repeatedly execute a set of instructions that constitute the loop. 2.References to data items also get localized, meaning the same data item is referenced again and again.
photo 2019 question 6a (all 5)
Wed 27th Oct 2021, 3:15pm, ANONYMOUS
Hello, Can you help me to check whether these two examples can explain the advantage of "The Principle of Referential Locality" ? 1. for loop, sicne the loop instructions are often in same area in memory, it can improve the speed of loop. 2. the data saved...
photo Re: about "manage" in exam 2020 4a (all 6)
Wed 27th Oct 2021, 9:58am, ANONYMOUS  O.P.
So just process_id?
photo about "manage" in exam 2020 4a (all 6)
Tue 26th Oct 2021, 12:05pm, ANONYMOUS
Hi, I'm not quite sure what does "what information must be managed" mean, I tried to answer it in my comprehension: There are two things unix kernel need to manage, First is to manage the process_id of both parent and child process after fork() call, Second...

UWA week 42 - 2nd semester, week 12

photo Re: does m support combination with flh? (all 3)
Thu 21st Oct 2021, 10:45pm, ANONYMOUS  O.P.
Besides, our program do support "-af filename" ,"-f filename -a", "-a -f filename" but doesn't support "-fa filename" since we have to follow a filename after f flag.
photo does m support combination with flh? (all 3)
Thu 21st Oct 2021, 10:41pm, ANONYMOUS
Hi, just wondering about can m combine with f l h? Suppose we have -mf as option then we just do -f or both -f and -m? Thanks.

UWA week 35 - 2nd semester, week 6

photo main-memory-reads-(fast-jeq) (both)
Mon 30th Aug 2021, 7:35pm, ANONYMOUS
Hello, do we also need to count number-of-main-memory-reads-(fast-jeq) in our result? Whtat is this "fast-jeq"?

UWA week 34 - 2nd semester, week 5

photo Re: pusha (all 8)
Sun 29th Aug 2021, 5:21pm, ANONYMOUS  O.P.
I'm just wondering whether we need to push an address or a the value corresponded with the address into stack
photo Re: pusha (all 8)
Sun 29th Aug 2021, 5:11pm, ANONYMOUS  O.P.
But what if I push an address on the stack as an integer, then how can the computer get it's value(which is stored in PC area)through the address?
photo Re: pusha (all 8)
Sun 29th Aug 2021, 1:09pm, ANONYMOUS  O.P.
how to distinguish an address and a constant when I want to save them into the stack?
photo pusha (all 8)
Sun 29th Aug 2021, 1:07pm, ANONYMOUS
Hello, I'm doing pusha part in project and I'm wondering how to save a address into stack after getting the address of a global variable.
photo Re: Floating point exception (all 5)
Sat 28th Aug 2021, 9:57pm, ANONYMOUS  O.P.
I think where is the problem, this is the result when I was running arthmetic.cool, but I don't know why there is a "div" at the end of the line
photo Re: Floating point exception (all 5)
Sat 28th Aug 2021, 9:46pm, ANONYMOUS  O.P.
but I'm sure there is no division or module by 0 in my code
photo Floating point exception (all 5)
Sat 28th Aug 2021, 9:25pm, ANONYMOUS
Hi, I add a "printf("%d\n",instruction)" so that I can see the words when reading basic.coolexe, but what does the "Floating point exception" mean?
photo Re: ‘main’ defined but not used (all 4)
Sat 28th Aug 2021, 8:23pm, ANONYMOUS  O.P.
Here is the detail.
photo ‘main’ defined but not used (all 4)
Sat 28th Aug 2021, 7:34pm, ANONYMOUS
Hello, Why when I was trying to compile my runcool.c, it showed ‘main’ defined but not used?
photo Re: about statistics in project1 (all 5)
Mon 23rd Aug 2021, 7:03pm, ANONYMOUS  O.P.
ok, so I assume project1 do cover some material not only in week 1 to 4
photo about statistics in project1 (all 5)
Mon 23rd Aug 2021, 4:13pm, ANONYMOUS
Hello, I've noticed that we need to produce the execution statistics,but I don't know what does "number-of-memory-reads 1044" in example mean. Does it mean the total words which read from main memory in this process? Also what does "number-of-cache-hits...

UWA week 33 - 2nd semester, week 4

photo about project1 (all 3)
Wed 18th Aug 2021, 8:36pm, ANONYMOUS
Hello, Does the project cover the materials discussed in week5 or 6? If it does, when can we see the lecture material of week5 or 6?
photo Re: some question about stackmachine() function (all 5)
Tue 17th Aug 2021, 9:22pm, ANONYMOUS  O.P.
thank you, I'm wondering can we add a global variable to account which line of a number in in word2 array so that that number can be put in the right position in the stack array
photo some question about stackmachine() function (all 5)
Tue 17th Aug 2021, 8:48pm, ANONYMOUS
Hi, I'm confusing about this step in stackmachine() function, can anyone explain this to me what's the purpose of this step?

UWA week 32 - 2nd semester, week 3

photo Re: about static variable (all 9)
Wed 11th Aug 2021, 2:56pm, ANONYMOUS  O.P.
sorry,I just misundertood question,I thought if we pass an integer, then the next time when running the program, the Rot needs to be that number.
photo Re: about static variable (all 9)
Wed 11th Aug 2021, 10:21am, ANONYMOUS  O.P.
I mean question9 asks program to recieve an argument if it's a number, then the rotation amount changes to this value.Can you give me some idea how to achieve this? What do I need to do with the "Rot" variable?
photo Re: about static variable (all 9)
Wed 11th Aug 2021, 9:41am, ANONYMOUS  O.P.
but if I let Rot be a const variable, then I can't change it's value if I want, can you give me some idea to modify Rot so that it can work correctly for question9
photo about static variable (all 9)
Tue 10th Aug 2021, 8:36pm, ANONYMOUS
Hi, I'm trying to make Rot as a static global variable so that Rot can be changed, but it still not works.So how to let Rot change every time in question9, lab1?
photo Re: difference between using a pointer (all 3)
Tue 10th Aug 2021, 6:55pm, ANONYMOUS  O.P.
here is how I use the poniter for the function
photo difference between using a pointer (all 3)
Tue 10th Aug 2021, 6:54pm, ANONYMOUS
Hi, for lab1,I'm confusing about why I have to use a pointer for isdigit() function,without using it,it shows "sementation fault"
photo lab1 question9 (both)
Mon 9th Aug 2021, 8:52pm, ANONYMOUS
Hi, for lab1 question9, why I got this when I tried to run the file.What does "segmentation fault" mean?
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:37am Nov 14 2021