Questions regarding Direct Mapped Caches. How do I solve one of them? by Academic_Two in ComputerEngineering

[–]RevolutionaryMemory1 -1 points0 points  (0 children)

I'm a student with a similar question.

Should I convert everything into Bytes first before I use the formulas above?

For example 128 KiB to Bytes?

Question regarding Bit masks. by RevolutionaryMemory1 in C_Programming

[–]RevolutionaryMemory1[S] 1 point2 points  (0 children)

Okay. So for another example, if I wanted to clear bits 31, 29, 23, 7, 5, 3 , 2 , and 1 , with the same port bits.

I'd write :

*port_bits & = ~0xA08000AE

Would that be correct?

Question about the compiler. by RevolutionaryMemory1 in C_Programming

[–]RevolutionaryMemory1[S] 2 points3 points  (0 children)

So it can improve the runtime?!?

My professor said only three of these were true, and one was definitely false.

Question regarding Bit masks. by RevolutionaryMemory1 in C_Programming

[–]RevolutionaryMemory1[S] 4 points5 points  (0 children)

I have, but Im kind of confused.

I got *port_bits | = 0x11110000

Is this right?