Home /Modules/compiler/COMPILER-ARCHITECTURE.md

COMPILER-ARCHITECTURE.md

lib/compiler/COMPILER-ARCHITECTURE.md · 55 line(s) · markdown

<p align="center"><img src="https://github.com/mearvk/SLeeLa/blob/master/images/sleela/sleela-compiler-logo-001.jpeg" alt="SLeeLa Compiler" width="100%"></p>

SLeeLa Compiler Architecture

Design

The compiler is a staged, source-driven pipeline. Each stage has a declared SLeeLa object and a native implementation boundary.

Stages

Single pipeline

.sleela -> frontend -> IR -> VM lowering -> SLVM/SLJVM

There is no second compiler language or hidden native source language.

VM readiness

The compiler must reject an artifact when required target capabilities, security policy, memory policy, certificate requirements, or declared dependencies are missing. It must report the reason rather than silently weakening the target.

Relationship to /lib/vm

/lib/compiler implements compilation.

/lib/vm implements the target model, Compiler Manager completeness review, memory/security management, linking, challenge, and reports services.

The compiler may ask the VM package whether a requested target feature is valid; it may not grant itself VM authority.

Output

A compile operation should identify:

A successful result means the declared pipeline completed. It does not mean an undeclared feature was added.