Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
native_engine.h File Reference

NativeEngine — host-OS native process execution engine. More...

#include <cstdint>
#include <memory>
#include <string>
#include "contur/execution/i_execution_engine.h"

Go to the source code of this file.

Classes

class  contur::NativeEngine
 Native host-process execution engine. More...

Namespaces

namespace  contur

Detailed Description

NativeEngine — host-OS native process execution engine.

NativeEngine is the second concrete implementation of IExecutionEngine (alongside InterpreterEngine). Instead of stepping a vector<Block> through a simulated CPU, it spawns a real host child process from the path stored in ProcessImage::nativePath() and lets the simulator's scheduler drive its lifecycle through suspend/resume primitives.

Phase 15 ships the Windows x86 backend only. The class layout reserves room for a POSIX backend later without changing the public header.

Definition in file native_engine.h.