Find Jobs
Hire Freelancers

C program to work with hit or miss

$30-250 USD

En cours
Publié il y a plus de 4 ans

$30-250 USD

Payé lors de la livraison
To compare the benefits of various cache organizations while performing matrix transpose operations, where spatial locality is not ideal. You will use test the cache operations using the program given below: Consider the following transpose routine: typedef int array [16][16]; void transpose1 (array dst, array src) { int i, j; for(i=0; i<16; i++) { for (j=0; j<16; j++ ) { dst[j][i] = src[i][j]; } } } Assume that this code runs on a machine with the following properties: • sizeof(int) == 4 • The src array starts at address 0 and the dst array starts at address 1024 (0x400) • There is a single L1 cache that is direct-mapped, write-through, write-allocate, with a block size of 16 bytes. • The cache has a total size of 64 data bytes and is initially empty. • Accesses to the src and dst arrays are the only sources of read and write misses. For each row and column, indicate whether the access to src[row][col] and dst[row][col] is a hit (h) or a miss(m). Reading src[0][0] is a miss and writing dst[0][0] is also a miss. 1. Generate a cache simulator program in c, to which addresses are passed, that determines whether an access of the address results in a cache hit or miss. 2. Your program must include a capability to vary the cache and block sizes. Your code will use bit operations to determine the set number and block offsets. Your cache implementation will need to store tag information and time of use information. 3. Your initial tests will use a cache size of 128 data bytes and a block size of 16 bytes. 4. You will test direct mapped, two-way set associative, and four-way set associative cache configurations using the matrix transpose operation. (You will use an LRU replacement strategy.) 5. Your cache will be write-through and write-allocate and the src and dst arrays are the only sources of read and write misses, respectively.
N° de projet : 22434600

Concernant le projet

2 propositions
Projet à distance
Actif à il y a 4 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
2 freelances proposent en moyenne $85 USD pour ce travail
Avatar de l'utilisateur
Dear I read your project description and I am very interested in your project. ❤️Thanks for giving me the opportunity to bind on your project.❤️ Have a strong background on OS, Kernel, Shceduling, C++, Compiler, data structure and algorithm, object oriented programming, design pattern. I can assure good quality and perfect deadline. I'm responsible and always punctual to deadlines. My goal is to make every client satisfied. I'd love to hear from you. Regards, Alexandra
$70 USD en 1 jour
5,0 (4 commentaires)
3,7
3,7

À propos du client

Drapeau de UNITED STATES
ALBUQUERQUE, United States
5,0
1
Méthode de paiement vérifiée
Membre depuis nov. 20, 2019

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.