Skip to content

[Suggestion] Allow to modify module structure #575

@Engineer-HaMa

Description

@Engineer-HaMa

I am solving #544 and encountered a problem.

The mod.rs file is getting too long, so I tried splitting it into several modules. It works well in local tests.

However, on gg.kaist.ac.kr, as stated in the notice, the test only considers the original mod.rs file.

Therefore, I suggest allowing students to freely add modules in the iregen directory. This would improve code readability and maintainability.

❯ git diff ./scripts/
diff --git a/scripts/make-submissions.sh b/scripts/make-submissions.sh
index 29ff41b8..4e52e672 100755
--- a/scripts/make-submissions.sh
+++ b/scripts/make-submissions.sh
@@ -4,7 +4,7 @@
 rm -rf irgen.zip simplify_cfg.zip mem2reg.zip gvn.zip deadcode.zip asmgen.zip final.zip

 # Creates new submissions.
-zip irgen.zip -j src/c/write_c.rs src/irgen/mod.rs
+zip irgen.zip -j src/c/write_c.rs src/irgen/*
 zip simplify_cfg.zip -j src/opt/opt_utils.rs src/opt/simplify_cfg.rs
 zip mem2reg.zip -j src/opt/opt_utils.rs src/opt/mem2reg.rs
 zip gvn.zip -j src/opt/opt_utils.rs src/opt/gvn.rs
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions