MyOS Compiler v2.0
WABT Ready
Target: WASM 1.0
Kernel Source (C)
Select Example
Fibonacci (Recursive)
Factorial
QuickSort
Kernel Basic
⚡
Compile & Run
kernel.c
myos.h
// MyOS Kernel v2.0 // Sistema Operativo Virtual Compilado a WASM Real int fibonacci(int n) { if (n <= 1) return n; return fibonacci(n - 1) + fibonacci(n - 2); } int factorial(int n) { int result = 1; for (int i = 2; i <= n; i++) { result = result * i; } return result; } int max(int a, int b) { return a > b ? a : b; } int main() { // Test recursive fibonacci int fib = fibonacci(10); // Test iterative factorial int fact = factorial(5); // Test comparison int maximum = max(fib, fact); // Return combined checksum return fib + fact + maximum; }
Compilation Results
View WAT
💾 Export WASM
Output
WAT
Hex
// Compilation results will appear here // Press 'Compile & Run' to start
0
LOC
0ms
Time
0B
WASM Size
0
Functions
● MyOS Compiler v2.0 initialized
● WABT.js WebAssembly Binary Toolkit loaded
● Ready for real C → WASM compilation
Initializing Compiler...