# Code Recommendation Tool **Repository Path**: rvsmart-porting/code-recommendation ## Basic Information - **Project Name**: Code Recommendation Tool - **Description**: RISC-V Architecture Adaptation Code Recommendation Tool - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-04-24 - **Last Updated**: 2023-10-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Design and Implementation of RISC-V Architecture Adaptation Code Recommendation Tool for C/C++ Software Projects [Click here to visit the OSPP project details page](https://summer-ospp.ac.cn/org/prodetail/) ## Project Introduction RISC-V, as an open-source and open architecture instruction set, has received extensive attention and applications in recent years. However, as it is still in the early stage of development and has many differences from existing instruction set architectures as a reduced instruction set, the software ecosystem for RISC-V is not yet rich enough. Many general-purpose software still faces some technical challenges in adapting to the RISC-V architecture. This project aims to study the modification of open-source software historical versions to adapt to different hardware architectures (mainly RISC-V architecture), and to research code recommendation techniques for RISC-V architecture adaptation of general-purpose software. Specifically, this technique can be used to analyze architecture-related source code in C/C++ language and provide modification suggestions or modification plans. The content that students participating in this project may need to study includes, but is not limited to: * Compatibility of common programming languages on the RISC-V platform * Hardware architecture-related code and usage in various programming languages, and their differences under different architectures * Modifications made to open-source software to adapt to different hardware architectures (mainly RISC-V architecture) * Common code modification and optimization schemes when adapting to RISC-V architecture * Generation of code modification plans and recommendations (possibility of combining with generative AI) This project hopes to develop a prototype tool based on architecture adaptation code recommendation technology to assist general-purpose software developers in adapting software to the RISC-V architecture and promote the development of the RISC-V open-source software ecosystem. ## Deliverables 1. [Required] Technical documentation for the tool. 2. [Optional with 3] Visual Studio Code development assistant plug-in based on code recommendation technology. 3. [Optional with 3] Fine-tune plan, prompt plan, dataset, and/or model weights for architecture-related code recommendations (based on generative AI). ## Technical Requirements 1. The core recommendation engine of the code recommendation tool should be developed primarily using C/C++ or Python. 2. The VSCode plug-in should be developed using NodeJS + Typescript. 3. If predefined rules are used for recommendation, they should be designed as a plug-in architecture as much as possible for easy extension to new rules and languages. 4. If generative AI is used for recommendation, the selected solution should follow the priority of open source solution > domestic solution > overseas solution while ensuring the effectiveness, and if necessary, computational support can be provided by the supervisor.