repos / gbc

GBC - Go B Compiler
git clone https://github.com/xplshn/gbc.git

gbc / examples
xplshn  ·  2025-08-16

.txtfmt.bx.json

Text
 1{
 2  "binary_path": "/tmp/gtest-2125050678/b4ec78171c1e3a7d",
 3  "compile": {
 4    "stdout": "----------------------\nTokenizing 1 source file(s) (Typed Pass: true)...\nParsing tokens into AST...\nConstant folding...\nType checking...\nQBE Codegen...\nCalling libqbe on our QBE IR...\nAssembling and linking to create '/tmp/gtest-2125050678/b4ec78171c1e3a7d'...\n----------------------\nCompilation successful!\n",
 5    "stderr": "gbc: info: no target specified, defaulting to host target 'amd64_sysv'\n",
 6    "exitCode": 0,
 7    "duration": 24357369,
 8    "timed_out": false
 9  },
10  "runs": [
11    {
12      "name": "fold",
13      "input": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzAB\n\n",
14      "result": {
15        "stdout": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw\n",
16        "stderr": "",
17        "exitCode": -1,
18        "duration": 5001114381,
19        "timed_out": true
20      }
21    }
22  ]
23}