{"id":22337640,"url":"https://github.com/scriptlinestudios/sscb","last_synced_at":"2025-08-13T20:05:11.013Z","repository":{"id":63665184,"uuid":"568776367","full_name":"ScriptLineStudios/SSCB","owner":"ScriptLineStudios","description":"Simple Stack-based Compiler Backend. An easy to use compiler backend for generating, optimising and translating intermediate representation","archived":false,"fork":false,"pushed_at":"2023-01-29T15:18:26.000Z","size":1052,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-19T09:52:10.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScriptLineStudios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-21T11:40:58.000Z","updated_at":"2024-04-30T03:18:55.000Z","dependencies_parsed_at":"2023-02-15T15:31:14.665Z","dependency_job_id":null,"html_url":"https://github.com/ScriptLineStudios/SSCB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ScriptLineStudios/SSCB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FSSCB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FSSCB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FSSCB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FSSCB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptLineStudios","download_url":"https://codeload.github.com/ScriptLineStudios/SSCB/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FSSCB/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270305085,"owners_count":24562087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T06:10:51.696Z","updated_at":"2025-08-13T20:05:10.955Z","avatar_url":"https://github.com/ScriptLineStudios.png","language":"C","readme":"# SSCB\nSimple Stack-based Compiler Backend. An easy to use compiler backend for generating, optimising and translating intermediate representation\n\n# How it works\nSSCB provides an easy to use API which allows you to generate intermediate representation (IR) which can then be optimised and compiled into different assembly languages. Small Example:\n\n# Targets\n- Intel x86_64 Linux\n- Intel x86 Linux\n\n```C\n#include \"include/sscb_instructions.h\"\n#include \"include/sscb_codegen.h\"\n\nint main(void) {\n    instruction_setup();\n\n    FUNCTIONEXTERN(FUNCTION(\"printf\"));\n\n    MOV(REG(R1), STRING(\"string_%d\", 10)); \n    XOR(REG(RETURNREGISTER), REG(RETURNREGISTER));\n    CALL(FUNCTION(\"printf\"));\n    RETURN();\n    \n    LABELDEF(STRING(\"string_%d\", 10));\n    DEFINEBYTE(STRING(\"`Helllo World!\\\\n`\\n\", 10));\n\n    codegen_generated_instructions(INTEL_x86_64_LINUX);\n    \n    return 0;\n}\n```\n\n##### Outline of the idea: https://docs.google.com/document/d/1SjRVg72Kb6y4kZf6pb-CG1xLP9F9fr01fhHzh6TqRO8/edit?usp=sharing\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptlinestudios%2Fsscb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptlinestudios%2Fsscb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptlinestudios%2Fsscb/lists"}