Skip to content

Repository files navigation

Naive LLM C-to-Rust Translation

This repository implements a baseline, naive LLM-based translation from C to Rust using calls to OpenAI's GPT5 model.

It executes the GPT5 conversion with the following call to naive.py:

        s3_key = os.environ.get("S3_KEY")
        if s3_key.endswith(("lib.tar.gz", "lib.tgz")):
            demo_cmd = ["python3", "/app/naive.py", str(tmpdir), str(outdir), "--c-compatible-lib", "--openai", "gpt-5"]
        else:
            demo_cmd = ["python3", "/app/naive.py", str(tmpdir), str(outdir), "--openai", "gpt-5"]

About

Publicly released naive LLM-baseline C-to-Rust translator

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages