Hi, just a quick question about calculating the page size from the offset.
if there are 10 bits for the offset in a 32 bit system, would the page size be 2 10 1kB bytes, where each offset contains 2 bits to determine which byte of the 4 bytes in the...
Hi
The global least recently used policy only means that you have to evict the least recently used page if the program tries to bring a page already in memory, am I understanding that correctly?
What is the purpose of the disk in this assignment? The p...
Hi, Just 2 questions about the assignment,
With the global least recently used eviction policy, does this only occur when we try to add a page already in the memory to the memory?
Also, since the output is only interested in the ram, what is the purpos...
By passing a function as a parameter to another function, I mean
function exec a
return a()
function seven
return 7
print exec(seven)
Here we pass the function seven to the function exec as its a parameter, and the exec ...
Hi, on the project page, it states that we should submit on csmarks, however, the submission on csmarks has its due date set to the 13th, will this be updated to match the newest 20th submission date or will a new submission point be added?
Hi,
Just a few questions about functions
What should happen if a top level variable shares the same name as a function? Is this disallowed by ml like it is in C?
Also, is it possible to pass a function as a parameter to a function, if it is, how would ...
How exactly can we ensure that integers are printed in that way without using 2 separate data types? Isn't it possible for an integer stored as float to have imprecision?
Furthermore, since the arguments passed to print could be an expression, wouldn...
Hi, in the examples, the print statement has inconsistent behavior, for example in sample 4, when 2 integers are multiplied, the printed value is 24, but in example 2, the printed value for a decimal float value is 2.500000 with no truncation. Does t...
Thank you for the clarifications.
My question about argument checking was poorly worded. It is clear to me that runml should perform argument checking, what I meant to ask was whether the ml scripts compiled by our program should perform argument chec...
Hi, Just had a few questions about the assignment.
First, what should happen if divide by zero occurs, are we expected to do static analysis at compile time, throw an error at run time, or is it UB?
Second, in example 5 a function call is done using ...
The code in the question doesn't have any breaks in the switch statement, remember that c has switch fall through by default, which should make the answer self evident.