threadx icon indicating copy to clipboard operation
threadx copied to clipboard

Assessment of the difficulty in porting CPU architecture for the threadx

Open wangyuliu opened this issue 2 years ago • 1 comments

Hello everyone! I am working on implementing a tool to assess the complexity of CPU architecture porting. It primarily focuses on RISC-V architecture porting. In fact, it can be estimated on average across various architectures.My focus is on the overall workload and difficulty of transplantation in the past and future.As part of my dataset, I have collected the threadX project. I would like to gather community opinions to support my assessment. I appreciate your help and response! Based on scanning tools, the porting complexity is determined to be moderate, with a moderate amount of code related to the CPU architecture in the project. (referring to the overall workload from adapting the project to a specific architecture to achieving full functionality on that architecture). Is this assessment accurate? I look forward to your help and response.

wangyuliu avatar Sep 11 '23 06:09 wangyuliu

Not sure if this is what you are looking for, but ThreadX support for most processor architectures is composed of 8 assembly language functions in separate files (typically tx_*.s) and one C include file tx_port.h. The design is for minimal hardware dependency and ease of porting. You can find examples in the "ports" folder of the repo.

williamelamie avatar Feb 05 '24 21:02 williamelamie