Tuesday, 24 April 2018

Embedded

http://www.plantation-productions.com/Webster/www.artofasm.com/Linux/HTML/MemoryArchitecturea2.html

Direct cache mapping - One memory block can be mapped to only one of the cache block and it is possible that more than one memory block mapped to the same cache block. It is very inefficient because same cache mapped memory block will evict another memory block,
Not more than one same cache mapped memory block can be in cache memory.

2 way associative  - 2 cache lines(blocks) per set. One memory block is cached to any one set of the cache. Within that that set it can be mapped to any of the cache block.
2 memory blocks mapped to the same set, need not have to evict each other. They can exist in cache at the same time.

4 way associative - 4 cache lines(blocks) per set.


Programme Address Space:

Mainly

stack - Stores local variables of the functions, functional parameters and return pointer.
heap - dynamically allocated memory
bss - Uninitialised static and global variables, filled with zeroes
data - initialised static and global vaiables
text - programme code and initialised strings variable or constants

https://manybutfinite.com/post/anatomy-of-a-program-in-memory/


Questions:
1) 96 interuupts are available in the system. Storethe IRQ number in bit mask
2) Write programm to return highest available interrupt while allocating the interrupt.

No comments:

Post a Comment