{"id":30653780,"url":"https://github.com/nickscha/pmem","last_synced_at":"2025-10-30T16:11:18.843Z","repository":{"id":312440390,"uuid":"1047511441","full_name":"nickscha/pmem","owner":"nickscha","description":"C89, single header, nostdlib platform memory provider","archived":false,"fork":false,"pushed_at":"2025-08-30T17:03:40.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-30T17:38:12.711Z","etag":null,"topics":["c89","memory","memory-allocation","nostdlib","single-header"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nickscha.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-30T15:30:08.000Z","updated_at":"2025-08-30T17:03:43.000Z","dependencies_parsed_at":"2025-08-30T17:38:14.891Z","dependency_job_id":"2248ad93-1631-4b46-8fd5-f1644daa4a91","html_url":"https://github.com/nickscha/pmem","commit_stats":null,"previous_names":["nickscha/pmem"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nickscha/pmem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickscha%2Fpmem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickscha%2Fpmem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickscha%2Fpmem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickscha%2Fpmem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickscha","download_url":"https://codeload.github.com/nickscha/pmem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickscha%2Fpmem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272953955,"owners_count":25021136,"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-31T02:00:09.071Z","response_time":79,"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":["c89","memory","memory-allocation","nostdlib","single-header"],"created_at":"2025-08-31T08:03:39.462Z","updated_at":"2025-10-30T16:11:18.766Z","avatar_url":"https://github.com/nickscha.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pmem\nA C89 standard compliant, single header, nostdlib (no C Standard Library) Platform Memory Provider (PMEM).\n\nFor more information please look at the \"pmem.h\" file or take a look at the \"examples\" or \"tests\" folder.\n\n\u003e [!WARNING]\n\u003e THIS PROJECT IS A WORK IN PROGRESS! ANYTHING CAN CHANGE AT ANY MOMENT WITHOUT ANY NOTICE! USE THIS PROJECT AT YOUR OWN RISK!\n \n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/nickscha/pmem/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/nickscha/pmem?style=flat-square\u0026color=blue\" alt=\"Latest Release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/nickscha/pmem/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/downloads/nickscha/pmem/total?style=flat-square\u0026color=brightgreen\" alt=\"Downloads\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square\" alt=\"License\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Standard-C89-orange?style=flat-square\" alt=\"C Standard\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/nolib-nostdlib-lightgrey?style=flat-square\" alt=\"nostdlib\"\u003e\n\u003c/p\u003e\n\n## **Features**\n- **C89 compliant** — portable and legacy-friendly  \n- **Single-header API** — just include `pmem.h`  \n- **nostdlib** — no dependency on the C Standard Library  \n- **Minimal binary size** — optimized for small executables  \n- **Cross-platform** — Windows, Linux, MacOs\n- **Strict compilation** — built with aggressive warnings \u0026 safety checks\n\n## Quick Start\n\nDownload or clone pmem.h and include it in your project.\n\n```C\n#include \"pmem.h\" /* Platform Memory Provider */\n\nint main() {\n\n    pmem block = {0};\n    block.memory_size = 1024;\n\n    if (!pmem_allocate(\u0026block)) {\n        return 1;\n    }\n\n    /* Now you can use block.memory */\n\n    if (!pmem_free(\u0026block)) {\n        return 1;\n    }\n\n    return 0;\n}\n```\n\n## Run Example: nostdlib, freestsanding\n\nIn this repo you will find the \"examples/pmem_win32_nostdlib.c\" with the corresponding \"build.bat\" file which\ncreates an executable only linked to \"kernel32\" and is not using the C standard library and executes the program afterwards.\n\n## \"nostdlib\" Motivation \u0026 Purpose\n\nnostdlib is a lightweight, minimalistic approach to C development that removes dependencies on the standard library. The motivation behind this project is to provide developers with greater control over their code by eliminating unnecessary overhead, reducing binary size, and enabling deployment in resource-constrained environments.\n\nMany modern development environments rely heavily on the standard library, which, while convenient, introduces unnecessary bloat, security risks, and unpredictable dependencies. nostdlib aims to give developers fine-grained control over memory management, execution flow, and system calls by working directly with the underlying platform.\n\n### Benefits\n\n#### Minimal overhead\nBy removing the standard library, nostdlib significantly reduces runtime overhead, allowing for faster execution and smaller binary sizes.\n\n#### Increased security\nStandard libraries often include unnecessary functions that increase the attack surface of an application. nostdlib mitigates security risks by removing unused and potentially vulnerable components.\n\n#### Reduced binary size\nWithout linking to the standard library, binaries are smaller, making them ideal for embedded systems, bootloaders, and operating systems where storage is limited.\n\n#### Enhanced performance\nDirect control over system calls and memory management leads to performance gains by eliminating abstraction layers imposed by standard libraries.\n\n#### Better portability\nBy relying only on fundamental system interfaces, nostdlib allows for easier porting across different platforms without worrying about standard library availability.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickscha%2Fpmem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickscha%2Fpmem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickscha%2Fpmem/lists"}