![]() |
|
#1
|
|||
|
|||
Cache Simulator...PLZ HELP!!What im trying to do is implement the cache using C. I have to find out the hit and miss rate of the cache. my code is pretty long so i'll just show u the parts i've implemented and the parts i need help with. If u have any inqueries PLZ feel free to ask. Thank you in advance for any help provided.
This is the part i have implemented. The code basically implements the Full associative, set associative and direct mapped cache. the variable cache is an array of SETS oh, this code is written in the "main" function CPP / C++ / C Code:
Code:
This is the part i need help with. I have the algorithim down but im not sure how to implement. Again, any help is most appreciated: CPP / C++ / C Code:
Again, thank you in advance for any and all help provided Last edited by LuciWiz : 30-Apr-2008 at 12:16.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
Recent GIDBlog
Observations of Iraq by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cache size for PDA and mobile devices | FarAway | Computer Hardware Forum | 0 | 24-Oct-2007 09:22 |
| C program for Cache Memory Simulation based on UNIX C | ravi119 | C Programming Language | 2 | 30-Nov-2006 14:01 |
| Re: Alternative PHP Cache (APC) | admin | Web Hosting Forum | 0 | 04-May-2006 23:41 |
| help direct mapped cache | lovec++ | Computer Software Forum - Windows | 0 | 18-May-2004 21:11 |
| what is the use of L1 and L2 cache? | meet_raman | Computer Hardware Forum | 4 | 01-May-2004 12:45 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The