{"id":26718847,"url":"https://github.com/bwsix/marspp","last_synced_at":"2025-03-27T17:50:28.283Z","repository":{"id":284756927,"uuid":"952756544","full_name":"BWsix/marspp","owner":"BWsix","description":"MARS++ adds C-like \"function calls\" to MIPS assembly language (targeting MARS system call)","archived":false,"fork":false,"pushed_at":"2025-03-27T14:40:21.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T14:47:08.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/BWsix.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":"2025-03-21T20:33:31.000Z","updated_at":"2025-03-27T14:41:12.000Z","dependencies_parsed_at":"2025-03-27T14:47:10.436Z","dependency_job_id":"9c9f59cd-feae-463e-8847-a4817bc86b43","html_url":"https://github.com/BWsix/marspp","commit_stats":null,"previous_names":["bwsix/marspp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BWsix%2Fmarspp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BWsix%2Fmarspp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BWsix%2Fmarspp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BWsix%2Fmarspp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BWsix","download_url":"https://codeload.github.com/BWsix/marspp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245898342,"owners_count":20690460,"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","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":"2025-03-27T17:50:27.786Z","updated_at":"2025-03-27T17:50:28.276Z","avatar_url":"https://github.com/BWsix.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is MARS++?\n\nMARS++ adds C-like \"function calls\" to MIPS assembly language (targeting MARS system call). Currently, the following \"function\"s are supported:\n\n- print_string(label)\n- print_string(\"string literal\")\n- exit()\n\n## Example\n\nGiven an input file named `input.asm`:\n\n```asm\n.text\n\tprint_string(\"Hello world!\")\n\texit()\n```\n\nAfter running the following command:\n\n```bash\nmarspp input.asm output.asm\n```\n\nMARS++ will generate an `output.asm` with the corresponding assembly code:\n\n```asm\n.text\n\tla $a0, label_marspp_0\t# load \"Hello world!\"\n\tli $v0, 4\t# specify print string service\n\tsyscall\t# print \"Hello world!\"\n\tli $v0, 10\t# specify exit service\n\tsyscall\t# exit\n\t\n.data\n\nlabel_marspp_0:\t.asciiz\t\"Hello world!\"\n```\n\n## Getting Started\n\nUsage:\n\n```bash\nmarspp \u003cinput.asm\u003e \u003coutput.asm\u003e\n```\n\n## References\n\n- c_lexer - [stb_c_lexer.h](https://github.com/nothings/stb/blob/master/stb_c_lexer.h)\n- Dynamic array - [stb_ds.h](https://github.com/nothings/stb/blob/master/stb_ds.h)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwsix%2Fmarspp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwsix%2Fmarspp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwsix%2Fmarspp/lists"}