gwsystems / composite

A component-based OS
composite.seas.gwu.edu
184 stars 70 forks source link

Implementation of generating the header file of constants value & Updating the exec_pipeline function #481

Closed mbai1010 closed 2 months ago

mbai1010 commented 2 months ago

Summary of this Pull Request (PR)

  1. To solve the exec_pipeline issue I faced, I imported rust crate shell_word into pipe.rs. The original design used cmd.split_whitespace() to split the make command. In that case, "-include /path/constants.h" will be split into two args. Using shell_words to keep it as a single arg.
  2. Interpret constants values in the TOML file into Rust code.
  3. Generate the constants header file.

Intent for your PR

Choose one (Mandatory):

Reviewers (Mandatory):

(Specify @<github.com username(s)> of the reviewers. Ex: @user1, @user2)

Code Quality

As part of this pull request, I've considered the following:

Style:

Code Craftsmanship:

Testing

I've tested the code using the following test programs (provide list here):