diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-09 22:43:40 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-09 22:43:40 -0700 |
commit | 1ce67ba21bce706932d0d3b3a6531075cf73c8ce (patch) | |
tree | 73424727bf1ba133f758d8495da67f3f5f314da1 /subx/020elf.cc | |
parent | 8291833d086ff74e490dae410e26fc08e480af3d (diff) | |
download | mu-1ce67ba21bce706932d0d3b3a6531075cf73c8ce.tar.gz |
4332
Minimize memory footprint while running subx ELF binaries. We don't use memory before address 0x08048000, so we don't need to allocate space for it.
Diffstat (limited to 'subx/020elf.cc')
-rw-r--r-- | subx/020elf.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/020elf.cc b/subx/020elf.cc index 807010ea..18b52634 100644 --- a/subx/020elf.cc +++ b/subx/020elf.cc @@ -7,6 +7,7 @@ if (is_equal(argv[1], "run")) { reset(); cerr << std::hex; initialize_mem(); + Mem_offset = CODE_START; load_elf(argv[2]); while (EIP < End_of_program) // weak final-gasp termination check run_one_instruction(); |