{"id":22169615,"url":"https://github.com/matveyt/nocrt0","last_synced_at":"2026-03-15T00:45:18.918Z","repository":{"id":242213081,"uuid":"115949529","full_name":"matveyt/nocrt0","owner":"matveyt","description":"Custom C startup code for GCC/MinGW","archived":false,"fork":false,"pushed_at":"2024-11-17T10:43:55.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T11:34:46.585Z","etag":null,"topics":["gcc","mingw","startup","windows"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matveyt.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":"2018-01-01T21:34:23.000Z","updated_at":"2024-11-17T10:43:58.000Z","dependencies_parsed_at":"2024-08-01T08:18:38.340Z","dependency_job_id":"74dc0ab5-37ca-4c56-a0a2-d25c12dae42a","html_url":"https://github.com/matveyt/nocrt0","commit_stats":null,"previous_names":["matveyt/nocrt0"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matveyt%2Fnocrt0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matveyt%2Fnocrt0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matveyt%2Fnocrt0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matveyt%2Fnocrt0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matveyt","download_url":"https://codeload.github.com/matveyt/nocrt0/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227685936,"owners_count":17804134,"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":["gcc","mingw","startup","windows"],"created_at":"2024-12-02T06:33:41.708Z","updated_at":"2026-03-15T00:45:13.868Z","avatar_url":"https://github.com/matveyt.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"nocrt0\n======\n\nSummary\n-------\n\nCustom C startup code (mainCRTStartup) implementation for GCC/MinGW.\n\nDescription\n-----------\n\n*Nocrt0* is a custom C startup code without any dependencies of the standard C runtime\nlibraries. It is intended for building very small executable files under OS Windows(R).\n*Nocrt0* was successfully tested with *GCC/MinGW*, *Pelles C* and *TinyCC*.\n\nUsing nocrt0\n------------\n\nThere are two modules: *nocrt0w* for GUI applications, and *nocrt0c* for console\napplications. Simply add the correct file into your project and build it without linking\nto the default C startup code (hint: for GCC you will need `-nostartfiles` or `-nostdlib`\noption). Alternatively, you can #include it right into any of your other C source files.\n\nThe process of building *nocrt0* can also be controlled with the following DEFINEs:\n\n    -D_UNICODE\n    -DNOSTDLIB\n    -DARGV={builtin | msvcrt | shell32 | none}\n\n`-D_UNICODE` builds \"wide\" version of the startup code (`wmain` or `wWinMain`).\n\n`-DNOSTDLIB` when defined compiles built-in implementation of `_alloca()` and\n`__chkstk()`. You might need it if you don't link with *libgcc.a*.\n\n`-DARGV` is used for a console application (nocrt0c) only. It selects the type of the\nunderlying implementation of the standard command-line parser (argc/argv). `builtin`\n(default) is the built-in implementation; `msvcrt` makes use of an external function\n`__getmainargs()` (which is normally imported from *msvcrt.dll*); `shell32` relies on\n`CommandLineToArgvW()` function from *shell32.dll*; `none` is for applications that do\nnot need any command-line processing (`int main(void)`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatveyt%2Fnocrt0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatveyt%2Fnocrt0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatveyt%2Fnocrt0/lists"}