{"id":13574870,"url":"https://github.com/phillbush/jvm","last_synced_at":"2025-08-19T22:32:36.069Z","repository":{"id":46278430,"uuid":"362121214","full_name":"phillbush/jvm","owner":"phillbush","description":" simple java virtual machine","archived":false,"fork":false,"pushed_at":"2021-11-02T18:28:21.000Z","size":150,"stargazers_count":238,"open_issues_count":1,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-02-17T06:34:00.974Z","etag":null,"topics":["c","c99","java","jvm"],"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/phillbush.png","metadata":{"files":{"readme":"README","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":"2021-04-27T13:24:25.000Z","updated_at":"2024-02-13T11:40:59.000Z","dependencies_parsed_at":"2022-09-13T17:02:08.527Z","dependency_job_id":null,"html_url":"https://github.com/phillbush/jvm","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/phillbush%2Fjvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillbush%2Fjvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillbush%2Fjvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillbush%2Fjvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phillbush","download_url":"https://codeload.github.com/phillbush/jvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230374126,"owners_count":18216042,"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":["c","c99","java","jvm"],"created_at":"2024-08-01T15:00:55.423Z","updated_at":"2024-12-19T04:07:33.536Z","avatar_url":"https://github.com/phillbush.png","language":"C","readme":"                                  jvm\n\nThis is the implementation of a simple Java Virtual Machine.  This is\nthe final project of the first semester of 2021 of the System Software\ncourse of the Computer Science department of the University of Brasilia.\n\nThe following tools are implemented:\n• javap(1): Disassembles one or more class files.\n• java(1):  Launches a Java application.\n\n\n§ Files\n\n• util.[ch]:    miscellaneous routines\n• class.[ch]:   routines and definitions related to class structure\n• native.[ch]:  routines and definitions related to native code\n• memory.[ch]:  routines and definitions related to JRE memory\n• file.[ch]:    routines to read and free .class files\n• javap.c:      .class file disassembler\n• java.c:       .class file interpreter\n• tests/*:      collection of simple .java files for testing the jvm\n\n\n§ Running\n\nTo build the jvm, run the following command.  This will create the\nexecutable file ./java for the jvm.\n\n\tmake java\n\nTo build the disassembler, run the following command.  This will create\nthe executable file ./javap for the disassembler.\n\n\tmake javap\n\nTo test the disassembler, run make on one of the test files with its\nsuffix replaced with \"p\".  For example, to test the disassembler on\nthe test class tests/HelloWorld.class, run the following command.\n\n\tmake tests/HelloWorld.p\n\nTo test the disassembler on all test classes, run the following command.\n\n\tmake testp\n\nTo test the jvm, run make on one of the test files with its suffix\nreplaced with \"j\".  For example, to test the jvm on the test class\ntests/HelloWorld.class, run the following command.\n\n\tmake tests/HelloWorld.j\n\nTo test the jvm on all test classes, run the following command.\n\n\tmake testj\n\n\n§ See Also\n\nThe Java® Virtual Machine Specification: Java SE 8Edition,\nby Tim Lindholm, Frank Yellin, Gilad Bracha, Alex Buckley,\nAddison-Wesley, 2014.\nISBN: 978-0-13-390590-8.\nhttps://docs.oracle.com/javase/specs/jvms/se8/html/\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphillbush%2Fjvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphillbush%2Fjvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphillbush%2Fjvm/lists"}