How does Enor code get executed by Cradle? #2
|
Hi! I was looking through Enor and I'm curious about how the execution flow works. When an ".ens" program is assembled into ".enb" bytecode, how does Cradle load and execute that bytecode? Is it essentially a stack-based instruction loop, or are there additional stages involved? I'm trying to understand the relationship between the Enor language, the assembler, and the Cradle VM. |
Replies: 1 comment
|
Enor uses a stack-based execution model through the Cradle VM. The The basic flow is:
The VM maintains the execution state and stack while processing the bytecode instructions. So Enor is essentially the language layer, while Cradle provides the runtime that actually executes the compiled representation. |
Enor uses a stack-based execution model through the Cradle VM. The
.enssource is first assembled into.enbbytecode, which Cradle then loads and executes through its instruction loop.The basic flow is:
.ens source → assembler → .enb bytecode → Cradle VM → executionThe VM maintains the execution state and stack while processing the bytecode instructions. So Enor is essentially the language layer, while Cradle provides the runtime that actually executes the compiled representation.