Skip to content

Conversation

@Samir-Rashid
Copy link
Owner

This pull request includes significant changes to the project, focusing on adding new translation functionalities, modifying existing modules, and updating test files. The most important changes include the addition of translation logic from RISC-V to ARM instructions, restructuring of the main module, and updates to the testing framework.

Translation Functionality:

  • src/translate.rs: Introduced comprehensive translation logic from RISC-V to ARM instructions, including detailed mappings for various instruction types and registers.

Module Restructuring:

  • src/main.rs: Refactored the main module to import new submodules (instruction, translate, utils) and removed the old parsing and translation functions.
  • src/lib.rs: Added new submodules to the library, enabling modular access to instruction parsing, translation, and utility functions.

Testing and Examples:

  • tests/binaries/add.c: Reintroduced the example C program for testing purposes, including commented sections for RISC-V and ARM assembly comparisons.
  • test_binary_translate_add.S: Added a new assembly file to test the binary translation functionality.

@Samir-Rashid Samir-Rashid requested review from atar13 and trdavidt March 12, 2025 01:01
trdavidt
trdavidt previously approved these changes Mar 12, 2025
Copy link
Collaborator

@trdavidt trdavidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@atar13
Copy link
Collaborator

atar13 commented Mar 12, 2025

lgtm

@Samir-Rashid
Copy link
Owner Author

Tested and works :shipit:

@trdavidt Please review, approve, and merge when you have a chance.

Copy link
Collaborator

@trdavidt trdavidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@trdavidt trdavidt merged commit fe3962b into main Mar 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants