Comments (6)
Hi @TheThirdOne, I'm the instructor of this course. We had great success with RARS in our first project. What we're hoping to do for the next one is to be able to just dump two things into a file:
- All the instructions that were actually executed, in whatever form is most convenient
- All the memory addresses that were touched, again in whatever form is most convenient
Is this an easy fix / is it any sort of possibility?
It would certainly allow some interesting analyses with RARS. Thanks for this nice tool. We've enjoyed teaching with it.
from rars.
I'm glad RARS has been useful to you.
In case you are not aware, there are integrated tools for interactively exploring branch prediction and cache behavior. They can be accessed from the tools dropdown.
How this might be implemented
As a tool:If you are looking to have a way of getting that data out from the GUI, my recommendation would be to make a tool which can gather the information during execution and then on press of a button output to a file. It shouldn't be very hard as there are several existing tools you could use as examples.
Through the simulator api:If you want to make this work automatically the best solution I can think of is using the API to single step through a program and record the information you need.
I'm not sure how big a feature it would be, but if I could make tools run from the command line, I think that would be an ideal way to add this functionality for the command line.
Internally: Currently, I don't think there is an easy way to track the information you want internally. The backstepping stack would be the only system that could be rigged to give a log after the fact.Another possible way of getting tracing information is to use the Observer interface, but I have been trying to remove it as much as possible.
My role in implementing this
I don't plan to implement the actual logging/tracing behavior because I don't know exactly what is needed and I don't think my experience with the internals of RARS is really needed to do so.
I am open to adding features to help make this functionality work well for you. I plan to look into the tool on command line interface. However, it may take a little time to get around to it as I have been working on floating point stuff recently.
I suggest that you look into implementing your desired functionality as a tool. All of the included tools can be found in this directory. In particular, I would suggest looking at InstructionCounter, MemoryReferenceVisualization and BHTSimulation.
For implementing this using the API, you can look at Test and Launch as examples for how to use it. And the main interface can be found here.
If you have trouble figuring out how to write a tool or use the API, please ask questions because they are currently not well documented and documenting them has been on my TODO list.
from rars.
I noticed there is now a fork and an implemented tool. Does that tool now suit your needs? If it does, please close this issue.
from rars.
Do you want the tool? It dumps every instruction, every instruction address, and every data address to a file.
from rars.
@jowens, if you think other people would find the tool useful, then I think it should be included back into the main branch so others can find it easily. Open a PR if you want to include the tool in RARS.
from rars.
Done (#68). This is literally my first piece of Java ever; kindly keep that in mind.
from rars.
Related Issues (20)
- Global pointer value
- BLT instruction machine code is not correct according to the document
- Crashed while executing ./test/selfmod.s HOT 1
- Native Executable HOT 1
- 0.0 + 0.0 = 0x7dc00000? HOT 2
- Enhancement: assemble new file without saving
- Feature request: GUI size and font size HOT 1
- Messages/Run I/O display console stuck in near-minimized form HOT 2
- Version 1.6 command line mode does not print register content after the run HOT 3
- sbrk problem HOT 1
- Error in Floating Point Representation tool about subnormal numbers?
- Could not find or load main class HOT 1
- Errors in Help
- Typo in syscalls help of RARS 1.6
- MMIO keybord interrtupt not triggering. HOT 5
- less than symbol < gets lost in tooltips
- MAC Issue HOT 2
- can system call 51 (InputDialogInt) take a hex input?
- Enhancement: allow expressions for immediate values and numeric directives .byte, .half, .word, .dword, etc.
- Can't open or see files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rars.