mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-27 01:22:32 +00:00
feat: Expand C++17 kernel subsystem with OOP device framework, containers, and benchmark engine
- Implement modern freestanding C++17 containers (Vector<T>, UniquePtr<T>, String) in kernel/cpp/cpp_containers.hpp - Implement object-oriented Device driver model (Device, BlockDevice, CharDevice, VirtualRamDiskDevice, VirtualNullDevice, VirtualZeroDevice, DeviceManager) in kernel/cpp/cpp_device.hpp and kernel/cpp/cpp_device.cpp - Add C++ kernel performance microbenchmark suite in kernel/cpp/cpp_bench.cpp - Export C-FFI bridges and add cross-architecture fallbacks in kernel/cpp/cpp_fallback.c and include/kernel/cpp_kernel.h - Add LazyBox applets: 'cppdevs' and 'cppbench' - Update README.md documentation and command matrix
This commit is contained in:
1 parent
03d68a9466
commit
1c09408287
11 files changed
+696
-4
No files matched your search
@@ -966,6 +966,17 @@ static int applet_cpptest(int argc, char** argv) {
|
||||
return cpp_test_oop_subsystem();
|
||||
}
|
||||
|
||||
static int applet_cppdevs(int argc, char** argv) {
|
||||
(void)argc; (void)argv;
|
||||
cpp_device_dump();
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int applet_cppbench(int argc, char** argv) {
|
||||
(void)argc; (void)argv;
|
||||
return cpp_run_benchmarks();
|
||||
}
|
||||
|
||||
static int applet_shm(int argc, char** argv) {
|
||||
(void)argc; (void)argv;
|
||||
posix_shm_dump();
|
||||
@@ -2137,6 +2148,8 @@ static const lazybox_applet_t applets[] = {
|
||||
{"snake", applet_snake, "snake [--demo]", "Interactive ANSI Snake Game", "Games"},
|
||||
{"cppinfo", applet_cppinfo, "cppinfo", "C++ OOP kernel telemetry", "System"},
|
||||
{"cpptest", applet_cpptest, "cpptest", "C++ polymorphism & new/del", "System"},
|
||||
{"cppdevs", applet_cppdevs, "cppdevs", "C++ OOP device tree", "System"},
|
||||
{"cppbench", applet_cppbench, "cppbench", "C++ OOP benchmark suite", "System"},
|
||||
{"shm", applet_shm, "shm", "POSIX /dev/shm shared memory", "System"},
|
||||
{"dnscache", applet_dnscache, "dnscache [-f]", "DNS resolver cache & metrics", "Network"},
|
||||
{"beep", applet_beep, "beep [freq/jingle] [ms]", "PC speaker & HDA tone synth", "Sound"},
|
||||
|
||||
Reference in new issue
Block a user