{"id":18901250,"url":"https://github.com/regular/make-llvm-bitcode-for-javascript","last_synced_at":"2026-03-03T20:30:24.153Z","repository":{"id":35161818,"uuid":"39407964","full_name":"regular/make-llvm-bitcode-for-javascript","owner":"regular","description":"helper script that compiles llvm tools (llvm-as, llvm-dis, opt, etc.) to llvm Bitcode for later transformation into JavaScript by emscripten","archived":false,"fork":false,"pushed_at":"2015-07-22T19:02:44.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T09:46:53.769Z","etag":null,"topics":["emscripten","llvm","llvm-bitcode"],"latest_commit_sha":null,"homepage":null,"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/regular.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}},"created_at":"2015-07-20T20:55:20.000Z","updated_at":"2021-10-02T16:21:21.000Z","dependencies_parsed_at":"2022-09-16T15:12:49.369Z","dependency_job_id":null,"html_url":"https://github.com/regular/make-llvm-bitcode-for-javascript","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/regular%2Fmake-llvm-bitcode-for-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fmake-llvm-bitcode-for-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fmake-llvm-bitcode-for-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Fmake-llvm-bitcode-for-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regular","download_url":"https://codeload.github.com/regular/make-llvm-bitcode-for-javascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239886327,"owners_count":19713465,"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":["emscripten","llvm","llvm-bitcode"],"created_at":"2024-11-08T08:55:35.552Z","updated_at":"2025-02-20T17:42:01.612Z","avatar_url":"https://github.com/regular.png","language":"C","readme":"# make-llvm-bitcode-for-javascript\nhelper script that compiles llvm tools (llvm-as, llvm-dis, opt, etc.) to llvm Bitcode for later transformation into JavaScript by emscripten\n\n## Why?\n\nThis enables you to use llvm in the browser!\n\n## Prerequisites\n\nYou need to have emscripten installed.\n\n## Usage\n\n1. download or clone an llvm source tree.\n\n        git clone git@github.com:kripken/emscripten-fastcomp.git kripken-fastcomp\n   \n2. run ./make-bitcode-for-javascript and provide the path to the llvm source tree\n\n        ./make-bitcode-for-javascript.sh ../kripken-fastcomp\n    \n3. Wait!\n\n4. Find .bc files in ./bitcode-for-js\n\n```\n➜  make-llvm-bitcode-for-javascript git:(master) ls bitcode-for-js\nbugpoint.bc            llvm-diff.bc           llvm-objdump.bc        opt.bc\nllc.bc                 llvm-dis.bc            llvm-pdbdump.bc        pnacl-abicheck.bc\nlli-child-target.bc    llvm-dsymutil.bc       llvm-profdata.bc       pnacl-bcanalyzer.bc\nlli.bc                 llvm-dwarfdump.bc      llvm-readobj.bc        pnacl-bccompress.bc\nllvm-ar.bc             llvm-extract.bc        llvm-rtdyld.bc         pnacl-bcdis.bc\nllvm-as.bc             llvm-link.bc           llvm-size.bc           pnacl-freeze.bc\nllvm-bcanalyzer.bc     llvm-lto.bc            llvm-stress.bc         pnacl-llc.bc\nllvm-c-test.bc         llvm-mc.bc             llvm-symbolizer.bc     pnacl-thaw.bc\nllvm-cov.bc            llvm-mcmarkup.bc       macho-dump.bc          verify-uselistorder.bc\nllvm-cxxdump.bc        llvm-nm.bc             obj2yaml.bc            yaml2obj.bc\n```\n\n## Compile to JavaScipt\n    \nFor example:\n        \n    emcc -Oz -v --llvm-lto 3 llvm-as.bc -o llvm-as.js\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Fmake-llvm-bitcode-for-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregular%2Fmake-llvm-bitcode-for-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Fmake-llvm-bitcode-for-javascript/lists"}