ronantakizawa commited on
Commit
61dee7f
·
verified ·
1 Parent(s): de4cfa2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -34
README.md CHANGED
@@ -43,6 +43,12 @@ Each problem has **32 assembly variants** (4 architectures x 2 compilers x 4 opt
43
  - **The largest output is LFU Cache** (1,121 lines at -O0 on x86-64), a complex doubly-linked list plus hash table implementation.
44
  - **The smallest output is Nim Game at -O3** (4 lines on x86-64) -- the entire solution optimizes to a single bitwise AND.
45
 
 
 
 
 
 
 
46
  ## Schema
47
 
48
  | Column | Type | Description |
@@ -85,37 +91,3 @@ C solutions were collected from three open-source GitHub repositories of pure-C
85
 
86
  After deduplication, 441 unique problems remained. Solutions are self-contained C files using only the standard library (no C++ STL), producing clean and readable assembly output.
87
 
88
- ## Compilation Details
89
-
90
- Assembly was generated using the [Godbolt Compiler Explorer](https://godbolt.org) public API with the following compilers:
91
-
92
- | Architecture | GCC Compiler ID | Clang Compiler ID | Syntax |
93
- |-------------|----------------|-------------------|--------|
94
- | x86-64 | `cg152` (GCC 15.2) | `cclang2110` (Clang 21.1.0) | Intel |
95
- | AArch64 | `carm64g1520` (GCC 15.2) | `armv8-cclang2110` (Clang 21.1.0) | Native |
96
- | MIPS64 | `cmips64g1520` (GCC 15.2) | `mips64-cclang2110` (Clang 21.1.0) | Native |
97
- | RISC-V 64 | `rv64-cgcc1520` (GCC 15.2) | `rv64-cclang2110` (Clang 21.1.0) | Native |
98
-
99
- Compiler flags: `-std=gnu89 -w -include stdio.h -include stdlib.h -include string.h -include stdbool.h -include limits.h -include math.h -include stdint.h -include ctype.h`
100
-
101
- Assembly output filters: directives removed, comments removed, labels preserved, symbols demangled.
102
-
103
- ## Potential Use Cases
104
-
105
- - Training or evaluating models on C-to-assembly translation
106
- - Studying how optimization levels affect generated code
107
- - Comparing GCC vs Clang assembly output on identical source code
108
- - Cross-architecture assembly comparison and analysis
109
- - Assembly language education and reference
110
- - Compiler behavior research
111
-
112
- ## Build Pipeline
113
-
114
- The dataset was built with an automated Python pipeline:
115
-
116
- 1. **Extract**: Clone repos, extract `.c` files, normalize unicode, deduplicate by problem ID
117
- 2. **Metadata**: Enrich with LeetCode problem titles and difficulty from HuggingFace
118
- 3. **Compile**: Send each solution to Godbolt API across all architecture/compiler/optimization combinations (with SQLite checkpointing for resumability)
119
- 4. **Publish**: Build HuggingFace Dataset and push to Hub
120
-
121
- Source code for the pipeline is available at [github.com/ronantakizawa/leetcodeassembly](https://github.com/ronantakizawa/leetcodeassembly).
 
43
  - **The largest output is LFU Cache** (1,121 lines at -O0 on x86-64), a complex doubly-linked list plus hash table implementation.
44
  - **The smallest output is Nim Game at -O3** (4 lines on x86-64) -- the entire solution optimizes to a single bitwise AND.
45
 
46
+ ## Use Cases
47
+
48
+ - Training or evaluating models on C-to-assembly translation
49
+ - Studying how optimization levels affect generated code
50
+ - Compiler behavior research
51
+
52
  ## Schema
53
 
54
  | Column | Type | Description |
 
91
 
92
  After deduplication, 441 unique problems remained. Solutions are self-contained C files using only the standard library (no C++ STL), producing clean and readable assembly output.
93