Files
scriptc/tests/library-mode/buffers/profile.json
Chris Tate b5e3d019fc Rename the capability: library mode, never "core", surface and internals
- CLI: the core verb becomes `scriptc build --lib --profile <p.json>` (no positional; profile names the entry); artifact renames to <name>.lib.a with .lib.ll/.lib.c/.lib.ir.json siblings
- SC4xxx diagnostic text and hints say library, never core; trap-message strings likewise (LIBRARY RC AUDIT, library reset registry, library inbound bytes)
- internals: compileLibrary/compileLibArchive, IrModule.lib + IrLibSection/IrLibExport, moduleLibAsyncSurface, libRoots, loadLibraryProfile/LibraryProfile under src/library/, frontend/lib-exports.ts, emitLibEntries/emitLibDefs
- runtime: scr_core.c -> scr_library.c with scr_library_* symbols and the SCR_LIB macro (scr_lib_* was taken by the stdlib unit); scr_lib_session_cleanup
- tests: tests/library-mode/ fixtures (entries lib.ts), library-*.test.ts harness files
2026-07-23 09:24:44 -05:00

20 lines
670 B
JSON

{
"profile_format": 1,
"name": "conformance-buffers",
"entry": "lib.ts",
"emission": "llvm",
"abi": {
"prefix": "kb_",
"init_symbol": "kb_init",
"sink_register_symbol": "kb_set_panic_sink",
"collect_symbol": "kb_collect",
"result_reset_symbol": null
},
"exports": [
{ "export": "shout", "symbol": "kb_shout", "params": ["string"], "returns": "string" },
{ "export": "strlen", "symbol": "kb_strlen", "params": ["string"], "returns": "f64" },
{ "export": "wrap", "symbol": "kb_wrap", "params": ["bytes"], "returns": "bytes" },
{ "export": "dashes", "symbol": "kb_dashes", "params": ["string"], "returns": "string" }
]
}