{"id":13798288,"url":"https://github.com/yabits/ebcvm","last_synced_at":"2025-05-13T05:31:59.351Z","repository":{"id":50440386,"uuid":"151960815","full_name":"yabits/ebcvm","owner":"yabits","description":"EFI Byte Code Virtual Machine in userspace","archived":false,"fork":false,"pushed_at":"2023-01-29T05:35:17.000Z","size":268,"stargazers_count":77,"open_issues_count":0,"forks_count":7,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-18T13:45:00.416Z","etag":null,"topics":["bytecode","ebc","uefi","virtual-machine","vm"],"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/yabits.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}},"created_at":"2018-10-07T16:24:25.000Z","updated_at":"2024-09-15T04:21:00.000Z","dependencies_parsed_at":"2023-02-15T20:50:16.882Z","dependency_job_id":null,"html_url":"https://github.com/yabits/ebcvm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yabits%2Febcvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yabits%2Febcvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yabits%2Febcvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yabits%2Febcvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yabits","download_url":"https://codeload.github.com/yabits/ebcvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253883121,"owners_count":21978611,"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":["bytecode","ebc","uefi","virtual-machine","vm"],"created_at":"2024-08-04T00:00:41.387Z","updated_at":"2025-05-13T05:31:55.296Z","avatar_url":"https://github.com/yabits.png","language":"C","funding_links":[],"categories":["Tools :hammer:"],"sub_categories":[],"readme":"# ebcvm [![CircleCI](https://circleci.com/gh/yabits/ebcvm.svg?style=shield)](https://circleci.com/gh/yabits/ebcvm)\n\nEFI Byte Code Virtual Machine in Userspace\n\n[ebcvm](https://github.com/yabits/ebcvm) is\na usermode EFI Byte Code (EBC) virtual machine.\nIt supports all EBC instructions described in UEFI Specification.\nIt also supports a few UEFI native code emulations and a simple debugger.\n\n## Building ebcvm\n\nTo build ebcvm, simply run:\n\n```\n$ make\n```\n\nThis will build following executables.\n\n* ebcvm:          EBC VM\n* tools/ebcdisas: Disassembler for EBC binaries\n* tools/fnv1:     Fowler-Noll-Vo hash tool\n\nTo run tests, run:\n\n```\n$ make test\n```\n\n## Usage\n\n```\nUsage: ./ebcvm [OPTION] FILE\nEFI Byte Code Interpreter\n[OPTION]\n  --debug={0,1}   debug mode\n  --mem=INT       size of memory\n  --stack=INT     size of stack\n  --heap=INT      size of heap\n  --step={0,1}    step execution\n  --reloc={0,1}   relocate sections\n  --help          show this help\n```\n\n## Working with ELVM\n\nSince there is no single EBC binary available in public,\nwe created an EBC backend for\n[ELVM](https://github.com/shinh/elvm).\n\nTo test EBC backend, run:\n\n```\n$ export PATH=`pwd`:$PATH\n$ git clone https://github.com/retrage/elvm.git\n$ cd elvm \u0026\u0026 git checkout retrage/ebc-v2\n$ make ebc\n```\n\nThe ELVM EBC backend will generate EBC binaries\nfrom EIR and C source code using modified\n[8cc](https://github.com/rui314/8cc).\n\n## EFI native code emulations\n\nebcvm has following native code emulations:\n\n* EFI\\_BOOT\\_SERVICES.AllocatePool()\n* EFI\\_SYSTEM\\_TABLE.ConIn.ReadKeyStroke()\n* EFI\\_SYSTEM\\_TABLE.ConOut.OutputString()\n\n## License\n\nebcvm is released under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyabits%2Febcvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyabits%2Febcvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyabits%2Febcvm/lists"}