Cache-Simulator | Java Simulation of an L1 Cache
kandi X-RAY | Cache-Simulator Summary
kandi X-RAY | Cache-Simulator Summary
This Java program simulates a Level-1 CPU Cache. The program usage is: java cache_sim -cX -bY -aZ. -c with in KB: 4, 8, 16, 32, or 64. -b with in bytes: 4, 8, 16, 32, 64, 128, 256, or 512. -a where is integer size of set: 1, 2, 4, 8, 16.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Command - line parser
- Parses the command line arguments
- Allocate a block
- Prints the statistics about the hits
Cache-Simulator Key Features
Cache-Simulator Examples and Code Snippets
Community Discussions
Trending Discussions on Cache-Simulator
QUESTION
I'm trying to use Intel Pin for investigating memory activity of an executable. And I tried to use IARG_MEMORYREAD_SIZE
parameter. Here is the source code.
ANSWER
Answered 2019-May-07 at 22:49This might fall under the case where you need to use IARG_MULTI_MEMORYACCESS_EA
(see the documentation).
Basically, according to the XSAVE documentation the number of bytes written to the memory pointed by the instruction is not constant and depends on the following factors:
- The requested-feature bitmap (RFBM)
- The logical-AND of EDX:EAX
- The logical-OR of XCR0 with the IA32_XSS MSR
You can check if you can use IARG_MEMORYREAD_SIZE
(constant memory sized instruction) or not with INS_hasKnownMemorySize
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Cache-Simulator
You can use Cache-Simulator like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Cache-Simulator component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page