Initial commit: WAFER (WebAssembly Forth Engine in Rust)
Optimizing Forth 2012 compiler targeting WebAssembly with IR-based compilation pipeline, multi-typed stack inference, subroutine threading, and JIT/consolidation modes. Rust kernel with ~35 primitives and Forth standard library for core/core-ext word sets.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
//! Consolidation recompiler: merge all JIT-compiled words into a single WASM module.
|
||||
//!
|
||||
//! After interactive development, `CONSOLIDATE` recompiles everything:
|
||||
//! - All `call_indirect` replaced with direct `call`
|
||||
//! - Cross-word optimizations (inlining, constant propagation)
|
||||
//! - Single WASM module output for maximum performance
|
||||
|
||||
// TODO: Step 12 - Consolidation recompiler implementation
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn placeholder() {
|
||||
// Consolidation tests will be added in Step 12
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user