vm-tasks.cc 491 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "common.hh"

#include "parse/parse-tasks.hh"
#include "vm/vm-tasks.hh"
#include "vm/virtual_machine.hh"

// Vm module related tasks' implementation.
namespace vm
{

  namespace tasks
  {

    static bool		trace_exec_p = false;
    void
    trace_exec ()
    {
      trace_exec_p = true;
    }

    void
    execute ()
    {
      vm::VirtualMachine vm;
      vm.load_program(* parse::tasks::program);
      vm.execute(trace_exec_p);
    }

  } // namespace tasks

} // namespace vm