mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Fix our remarkable 184kb x86_64 emulator
Here's how to build it from source and try it out! m=tiny make -j18 MODE=$m o/$m/tool/build/tinyemu.com make -j18 MODE=$m o/$m/tool/viz/deathstar.com o/$m/tool/build/tinyemu.com o/$m/tool/viz/deathstar.com
This commit is contained in:
parent
d7ac16a9ed
commit
efc66f8525
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ int main(int argc, char *argv[]) {
|
|||
return EX_USAGE;
|
||||
}
|
||||
m = NewMachine();
|
||||
m->mode = XED_MACHINE_MODE_LONG_64;
|
||||
LoadProgram(m, argv[1], argv + 2, environ, &elf);
|
||||
m->fds.p = xcalloc((m->fds.n = 8), sizeof(struct MachineFd));
|
||||
AddHostFd(m, STDIN_FILENO);
|
||||
|
|
Loading…
Add table
Reference in a new issue