rust-lang / rust-lang/rustc_codegen_gcc

Bindgen-like support

Open
#518 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

GCC already has -fdump-go-spec=/-fdump-ada-spec options to write Go/Ada bindings for C/C++.

-fdump-ada-spec is implemented in c-family, so in the FEs; -fdump-go-spec is in the middle-end code, hooking into debug_hooks.

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 by reading GCC’s c-family implementation of -fdump-ada-spec and the middle-end implementation of -fdump-go-spec, including its debug_hooks integration. Then identify the rustc_codegen_gcc entry points relevant to equivalent bindgen-like support and define a test for the expected generated bindings; done means the requested binding output is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp, go, rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.