{"id":22542518,"url":"https://github.com/modula-dev/m","last_synced_at":"2025-03-28T07:43:42.467Z","repository":{"id":264202615,"uuid":"892712479","full_name":"Modula-dev/m","owner":"Modula-dev","description":"Modula's modular cross-compiler toolchain","archived":false,"fork":false,"pushed_at":"2024-11-22T17:00:14.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T07:43:39.186Z","etag":null,"topics":["cli","command-line-interface","compiler-toolchain","cross-compiler","extensible-compiler","extensible-frontends","frontend","modular","modular-compiler","package-manager"],"latest_commit_sha":null,"homepage":"https://modula.dev/src","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Modula-dev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","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":"2024-11-22T16:22:27.000Z","updated_at":"2025-01-27T09:57:27.000Z","dependencies_parsed_at":"2024-12-07T13:11:57.469Z","dependency_job_id":"4956d747-7a19-4354-a351-9f99ed097057","html_url":"https://github.com/Modula-dev/m","commit_stats":null,"previous_names":["johnalexco/m","modula-dev/m"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Modula-dev%2Fm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Modula-dev%2Fm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Modula-dev%2Fm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Modula-dev%2Fm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Modula-dev","download_url":"https://codeload.github.com/Modula-dev/m/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991561,"owners_count":20706126,"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":["cli","command-line-interface","compiler-toolchain","cross-compiler","extensible-compiler","extensible-frontends","frontend","modular","modular-compiler","package-manager"],"created_at":"2024-12-07T13:10:45.994Z","updated_at":"2025-03-28T07:43:42.444Z","avatar_url":"https://github.com/Modula-dev.png","language":"C","readme":"# m\nis a modular cross-compiler interface.\nIt does not contain any frontend or backends on its own,\nbut rather functions as a toolchain\nthat allows installing and interoperating compilers\nfollow `m`'s simple conventions.\nThe purpose of `m` is to function as the CLI for the\n[`garter`](https://modula.dev/garter)\ncompiler and its components, but `m` itself should be simple enough to allow\ncross-compatibility or incorporation into other projects.\n\n## Quick-Use\n\n1. Download or build `m`\n2. Install modules\n3. Compile by daisy-chaining source files between frontend\n\nRunning `m help` after installation should display usage information\n\n## Example Use\nIf you installed a module for compiling C called c99\nand you wanted to produce a Windows executable using the\nstandard [garter](https://modula.dev/garter) toolchain,\nthat command would look something like\n```\nm main.c main.gasm main.gyb main.exe // implicit\nm -c99 main.c -a main.gasm -exe main.gyb main.exe // explicit\n```\nWhat happens under-the-hood is that the `main.c`\nis loaded into the c99 module, and that frontend\noutputs `main.gasm` which is loaded into the assembler.\nThe assembler output, `main.gyb`,\nis then loaded into the Windows PE-EXE backend.\n\n\u003e [!NOTE]\n\u003e Build paths are a planned feature,\n\u003e wherein you can have an input file, an output file,\n\u003e and then the `m` toolchain will find the shortest\n\u003e compilation path between the input and output modules.\n\u003e It will look something like\n\u003e ```\n\u003e m --build main.c main.exe\n\u003e ```\n\n## Module Conventions\n\nModules should accept the following special commands:\n- `--version`, which prints version information\n- `--contributors`, which prints the name of the module, and a list of all of its contributors\n- `--license`, which prints the name of the module and the shorthand name its license.\nFor a list of such names, see [choosealicense.com](https://choosealicense.com/).\nIn the case of custom or other licenses,\nthe command should either print `custom:proprietary`,\nor `custom:foss`. If you are unsure if you should\nlist your module as `custom:foss`, see [the FSF's four essential freedoms](https://en.wikipedia.org/wiki/The_Free_Software_Definition#The_Four_Essential_Freedoms_of_Free_Software)\n- `--mconfig`, which prints the preferred module name, flag, and file extension it should be associated with\n\nFor normal use, `m` calls modules with\nthe `input` and `output` filenames to read and write.\nIf there are any errors during compilation,\nthe module should write the error to `output`\nand exit with a non-zero status code.\n\n## Licenses\n\n`m` is made available under the copyleft [GPLv3 license](https://www.gnu.org/licenses/gpl-3.0.en.html).\nAssets used by `m`, such as the\n[Modula](https://modula.dev) and [garter](https://modula.dev/garter) branding,\nare freely available but proprietary.\nModula permits redistribution of those assets alongside\nthe original or modified GPLv3 code so long as the copyright notice for those assets is still included.\n\n\u003e [!NOTE]\n\u003e The default `m license` command is sufficient\n\u003e for fufilling this requirement if left as-is\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodula-dev%2Fm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodula-dev%2Fm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodula-dev%2Fm/lists"}