From b499ee5e2bb41afd002260b38e8cd8faa9ab7552 Mon Sep 17 00:00:00 2001 From: wangdequan Date: Sun, 7 Jun 2026 16:54:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E6=8E=A8=E8=8D=90=E5=BB=BA=E8=AE=AE?= =?UTF-8?q?=EF=BC=8C=E7=BB=A7=E7=BB=AD=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 结论:新增 interp_read.cc、interp_check.cc、interp_execute.cc 的 vendored LinuxCNC 源码直接编译探针,并纳入 native 验证,继续约束迁移工作来源于 LinuxCNC 源程序。 --- wasm-port/docs/porting-steps-standalone.md | 5 +++++ wasm-port/tests/native/verify_native_probes.sh | 3 +++ wasm-port/tools/build_native_probes.sh | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/wasm-port/docs/porting-steps-standalone.md b/wasm-port/docs/porting-steps-standalone.md index cc84a72..50f6f5b 100644 --- a/wasm-port/docs/porting-steps-standalone.md +++ b/wasm-port/docs/porting-steps-standalone.md @@ -445,6 +445,11 @@ Current verified progress: `interp_convert.cc`. The required `emcStatus` shim is limited to the native status boundary used by `tag_arc()` for machine units; it is not a project-authored CNC behavior implementation. +- `tools/build_native_probes.sh` now also includes direct source compile + probes for vendored `interp_read.cc`, `interp_check.cc`, and + `interp_execute.cc`. These probes keep the next interpreter-core migration + work focused on LinuxCNC source entry points and expose missing standalone + runtime shims before wrapper behavior is expanded. ## Phase 4: Port INI Parsing Without Editing Upstream diff --git a/wasm-port/tests/native/verify_native_probes.sh b/wasm-port/tests/native/verify_native_probes.sh index 5ba92c7..725f9fb 100755 --- a/wasm-port/tests/native/verify_native_probes.sh +++ b/wasm-port/tests/native/verify_native_probes.sh @@ -42,6 +42,9 @@ check_exitcode linuxcnc_parameter_file_harness check_exitcode linuxcnc_parameter_file_harness.run check_exitcode linuxcnc_rs274_compile_probe check_exitcode linuxcnc_interp_convert_source_probe +check_exitcode linuxcnc_interp_read_source_probe +check_exitcode linuxcnc_interp_check_source_probe +check_exitcode linuxcnc_interp_execute_source_probe NAMEDPARAM_STDOUT="$BUILD_DIR/linuxcnc_namedparam_harness.run.stdout.log" grep -Fq "init_named_parameters=0" "$NAMEDPARAM_STDOUT" diff --git a/wasm-port/tools/build_native_probes.sh b/wasm-port/tools/build_native_probes.sh index 402a0ac..c3a6e96 100755 --- a/wasm-port/tools/build_native_probes.sh +++ b/wasm-port/tools/build_native_probes.sh @@ -459,4 +459,22 @@ build_object_target \ "$VENDOR_DIR/src/emc/rs274ngc/interp_convert.cc" \ COMMON_FLAGS +build_object_target \ + linuxcnc_interp_read_source_probe \ + "$BUILD_DIR/linuxcnc_interp_read_source_probe.o" \ + "$VENDOR_DIR/src/emc/rs274ngc/interp_read.cc" \ + COMMON_FLAGS + +build_object_target \ + linuxcnc_interp_check_source_probe \ + "$BUILD_DIR/linuxcnc_interp_check_source_probe.o" \ + "$VENDOR_DIR/src/emc/rs274ngc/interp_check.cc" \ + COMMON_FLAGS + +build_object_target \ + linuxcnc_interp_execute_source_probe \ + "$BUILD_DIR/linuxcnc_interp_execute_source_probe.o" \ + "$VENDOR_DIR/src/emc/rs274ngc/interp_execute.cc" \ + COMMON_FLAGS + echo "native probes complete"