rust-lang / rust-lang/rustc_codegen_gcc

Seems like we generate more code than cg_llvm

Open
#587 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.2k
Forks
105
Avg merge
8h 20m
Merged PRs (30d)
14

Description

Compare the GIMPLE and LLVM IR for my project reproducer-memchr.

The GIMPLE seems to contain more functions than the LLVM IR.

This might be one of the causes of the difference in binary size.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproducer-memchr project and compare its GIMPLE and LLVM IR output, checking which functions appear in one representation but not the other. Trace the relevant rustc_codegen_gcc and cg_llvm compilation paths; done means explaining the function-count difference and whether it accounts for the binary-size discrepancy.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.