sjkim1127 commited on
Commit
3962c40
·
verified ·
1 Parent(s): 81ef408

README: document Windows MSVC (Detours, WinSparkle) & The Powder Toy integration

Browse files
Files changed (1) hide show
  1. README.md +30 -23
README.md CHANGED
@@ -2,55 +2,62 @@
2
  license: bsd-2-clause
3
  language:
4
  - en
5
- pretty_name: DecBench C++ Dataset Unofficial
6
  tags:
7
  - decompilation
8
  - benchmark
9
  - c++
10
  - dwarf
 
11
  - reverse-engineering
12
  size_categories:
13
  - 1K<n<10K
14
  ---
15
 
16
- # DecBench C++ Dataset Unofficial
17
 
18
  > **Unofficial.** This is a community-contributed workspace prepared to help the
19
  > [DecBench](https://huggingface.co/datasets/noelo-lab/decbench-dataset) maintainers
20
- > evaluate C++ targets. It is **not** an official Noelo-Lab dataset and is not
21
- > endorsed by them. It holds target qualification evidence, candidate lists, the
22
- > scripts that produced them, and a **compiled C++ benchmark corpus** under `cpp-compiled/`
23
- > containing **1,103 binaries across 40 qualified C++ projects** across 3 optimization levels
24
- > (`O0`, `O2`, `O2-noinline`), with full DWARF and preprocessed `.ii` sources.
25
 
26
  - **Related PR:** [Noelo-Lab/decbench#91](https://github.com/Noelo-Lab/decbench/pull/91) —
27
  C++ function identity (`name@0x<low_pc>`) fix.
28
  - **Source repository:** <https://github.com/sjkim1127/Decbench_SampleSet>
29
  - **Upstream dataset:** <https://huggingface.co/datasets/noelo-lab/decbench-dataset>
30
- - **License:** BSD-2-Clause, matching the upstream DecBench dataset. Third-party
31
- projects referenced keep their respective licenses.
 
32
 
33
  ## Contents
34
 
35
  | Path | What it holds |
36
  |---|---|
37
- | `cpp-compiled/` | **Full C++ Benchmark Corpus (1,103 binaries / 40 projects / 3 opt modes):**<br>• `binaries/<opt>/<project>/<binary>` (GCC 13.3 aarch64 ELF with full DWARF)<br>• `sources/<project>_sources.tar.gz` (Preprocessed `.ii` source units for all opt levels)<br>• `manifest.json` (SHA256 checksums, byte sizes, per-project metadata)<br>• `build_summary.json` (Compilation details & pinned upstream git revisions) |
 
38
  | `results/cpp-corpus-2026-09-16/` | Corpus-scale funnel report and the 48-target shortlist (`final-48.csv`) |
39
- | `results/*.md`, `results/evidence/` | Per-target qualification reports and raw evidence (collision measurements, MSVC/PDB summaries) |
40
- | `targets/` | Target definitions (TOML) |
41
- | `scripts/` | Discovery, build-probe, multi-opt compilation, and staging scripts |
42
- | `docs/` | Local validation notes and result template |
43
 
44
  ---
45
 
46
- ## Compiled C++ Corpus Overview (`cpp-compiled/`)
47
 
48
- - **Compiler:** GCC/G++ 13.3.0 (Ubuntu 24.04 aarch64)
 
 
49
  - **Optimization Levels:**
50
- - `O0`: `-O0 -g -fno-builtin -save-temps=obj`
51
- - `O2`: `-O2 -g -fno-builtin -save-temps=obj`
52
- - `O2-noinline`: `-O2 -fno-inline -g -fno-builtin -save-temps=obj`
53
- - **Total Binaries:** 1,103 linked ELF binaries with DWARF (up to 25 unique ELF binaries per project/mode).
54
- - **Total Projects Qualified:** 40 major open-source C++ repositories, including:
55
- - `abseil-cpp`, `asio`, `Catch2`, `dlib`, `doctest`, `EASTL`, `flatbuffers`, `fmt`, `ggml`, `googletest`, `gperftools`, `harfbuzz`, `jsoncpp`, `leveldb`, `LightGBM`, `luau`, `ninja`, `oatpp`, `PowerInfer`, `snappy`, `spdlog`, `whisper.cpp`, `wabt`, `yaml-cpp`, `yoga`, `libzmq`, and more.
56
- - **Ground Truth Philosophy:** Source-level AST/preprocessed representation (`.ii`) and binary ground truth (DWARF) are completely decoupled from scoring policy.
 
 
 
 
 
2
  license: bsd-2-clause
3
  language:
4
  - en
5
+ pretty_name: DecBench C++ Dataset Unofficial (Cross-Platform)
6
  tags:
7
  - decompilation
8
  - benchmark
9
  - c++
10
  - dwarf
11
+ - pdb
12
  - reverse-engineering
13
  size_categories:
14
  - 1K<n<10K
15
  ---
16
 
17
+ # DecBench C++ Dataset Unofficial (Cross-Platform)
18
 
19
  > **Unofficial.** This is a community-contributed workspace prepared to help the
20
  > [DecBench](https://huggingface.co/datasets/noelo-lab/decbench-dataset) maintainers
21
+ > evaluate multi-language and cross-platform C++ targets. It is **not** an official Noelo-Lab dataset.
22
+ > It holds target qualification evidence, candidate lists, the scripts that produced them, and a
23
+ > **cross-platform C++ benchmark corpus** under `cpp-compiled/` containing **1,086+ binaries/debug artifacts
24
+ > across 43 projects** spanning both **Linux (GCC / DWARF)** and **Windows (native MSVC / CodeView PDB)**
25
+ > across 3 optimization levels (`O0`, `O2`, `O2-noinline`).
26
 
27
  - **Related PR:** [Noelo-Lab/decbench#91](https://github.com/Noelo-Lab/decbench/pull/91) —
28
  C++ function identity (`name@0x<low_pc>`) fix.
29
  - **Source repository:** <https://github.com/sjkim1127/Decbench_SampleSet>
30
  - **Upstream dataset:** <https://huggingface.co/datasets/noelo-lab/decbench-dataset>
31
+ - **License:** BSD-2-Clause, matching the upstream DecBench dataset. Third-party projects keep their respective licenses.
32
+
33
+ ---
34
 
35
  ## Contents
36
 
37
  | Path | What it holds |
38
  |---|---|
39
+ | `cpp-compiled/` | **Cross-Platform C++ Benchmark Corpus:**<br>• `binaries/<opt>/<project>/` (Linux ELF+DWARF and Windows x64 PE+PDB)<br>• `sources/<project>_sources.tar.gz` (Preprocessed `.ii`/source units)<br>• `manifest.json` (Platform breakdown, SHA256 checksums, byte sizes)<br>• `build_summary.json` (Compilation details & pinned upstream git revisions) |
40
+ | `docs/curated-sample-set.md` | **Curated Sample-Set Specification:** Balanced ~8–10 project subset across software domains and OSes (Linux + Windows) |
41
  | `results/cpp-corpus-2026-09-16/` | Corpus-scale funnel report and the 48-target shortlist (`final-48.csv`) |
42
+ | `targets/` | Target definitions (TOML) including `targets/windows/` |
43
+ | `scripts/` | Build-probe, multi-opt compilation, and native MSVC qualification scripts |
 
 
44
 
45
  ---
46
 
47
+ ## Platform & Domain Coverage (`cpp-compiled/`)
48
 
49
+ - **Platforms:**
50
+ - **Linux aarch64:** Built with GCC/G++ 13.3.0 (`-g -fno-builtin -save-temps=obj`). Unstripped ELF with full DWARF.
51
+ - **Windows x64:** Built with native Visual Studio 2022 MSVC (`cl.exe /Zi /GL-` + `link.exe /DEBUG:FULL /LTCG:OFF`). Windows PE32+ DLLs and EXEs with full matching `.pdb` CodeView symbols.
52
  - **Optimization Levels:**
53
+ - `O0`: Unoptimized (`/Od /Ob0` or `-O0`)
54
+ - `O2`: Full optimization (`/O2` or `-O2`)
55
+ - `O2-noinline`: Inlining disabled (`/O2 /Ob0` or `-O2 -fno-inline`)
56
+ - **Key Real-World Domain Representative Projects:**
57
+ - **GUI / Physics Simulation:** **The Powder Toy** (C++20, SDL2 rendering, particle simulation, strict *No-AI PR* policy guaranteeing pure human-authored code).
58
+ - **Low-Level / System Hooking:** **Microsoft Detours** (Win32 machine-code hooking, instruction disasm).
59
+ - **Network / Updater:** **WinSparkle** (Win32 worker thread pools, asynchronous HTTP).
60
+ - **System Storage & Compression:** **Google Snappy**, **leveldb**, **mergerfs**.
61
+ - **CLI / Developer Tool:** **Ninja** (DAG dependency graph evaluation), **wabt**.
62
+ - **Server / Async Networking:** **Asio**, **Oat++**, **libzmq**.
63
+ - **Modern C++ Metaprogramming:** **fmt**, **Catch2**, **Microsoft GSL**.