Top Banner
Carnegie Mellon 1 Memory Organization, Cache and C programming 15-213: Introduction to Computer Systems Recitation 7: Thursday, June19, 2014 Vinay Venkatesh ([email protected]) Shiva ([email protected]) Aditya Gupta ([email protected])
35

Memory Organization, Cache and C programming

Dec 18, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Memory Organization, Cache and C programming

Carnegie Mellon

1

Memory Organization, Cache and C programming

15-213: Introduction to Computer Systems Recitation 7: Thursday, June19, 2014

Vinay Venkatesh ([email protected])

Shiva ([email protected])

Aditya Gupta ([email protected])

Page 2: Memory Organization, Cache and C programming

Carnegie Mellon

2

Memory organization

Caching

Different types of locality

Cache organization

Programming in C and Unix kickstart

Cachelab

Part (a) Building Cache Simulator

Part (b) Efficient Matrix Transpose

Cache Lab demo

Agenda

Page 3: Memory Organization, Cache and C programming
Page 4: Memory Organization, Cache and C programming
Page 5: Memory Organization, Cache and C programming
Page 6: Memory Organization, Cache and C programming
Page 7: Memory Organization, Cache and C programming
Page 8: Memory Organization, Cache and C programming
Page 9: Memory Organization, Cache and C programming
Page 10: Memory Organization, Cache and C programming
Page 11: Memory Organization, Cache and C programming
Page 12: Memory Organization, Cache and C programming
Page 13: Memory Organization, Cache and C programming
Page 14: Memory Organization, Cache and C programming
Page 15: Memory Organization, Cache and C programming
Page 16: Memory Organization, Cache and C programming

Carnegie Mellon

16

Programming in C and Unix Kick-Start

Page 17: Memory Organization, Cache and C programming

Note: Remember to use man

Page 18: Memory Organization, Cache and C programming
Page 19: Memory Organization, Cache and C programming
Page 20: Memory Organization, Cache and C programming
Page 21: Memory Organization, Cache and C programming
Page 22: Memory Organization, Cache and C programming
Page 23: Memory Organization, Cache and C programming
Page 24: Memory Organization, Cache and C programming
Page 25: Memory Organization, Cache and C programming
Page 26: Memory Organization, Cache and C programming
Page 27: Memory Organization, Cache and C programming
Page 28: Memory Organization, Cache and C programming
Page 29: Memory Organization, Cache and C programming
Page 30: Memory Organization, Cache and C programming
Page 31: Memory Organization, Cache and C programming
Page 32: Memory Organization, Cache and C programming
Page 33: Memory Organization, Cache and C programming
Page 34: Memory Organization, Cache and C programming
Page 35: Memory Organization, Cache and C programming

Carnegie Mellon

35

Cache Lab Demo