compiler/shared/runtime/l0_runtime.h

Overview Symbols grouped by source file: compiler/shared/runtime/l0_runtime.h

Source: compiler/shared/runtime/l0_runtime.h Language: C

L0 Runtime Library (K0 - Kernel Layer)

Header-only C99 runtime providing:

  • Memory allocation and deallocation
  • Whole-file I/O operations
  • Basic printing to stdout/stderr
  • Panic mechanism for defined runtime aborts
  • UB-free integer operations
  • String type and operations
  • Optional type support
  • Random number generation
  • Wall/monotonic time snapshots and local-time metadata
  • Support for L0 new and drop semantics
  • Environment variable access
  • Reading from stdin
  • Errno access

Design principles:

  • All UB and platform quirks are confined to this file
  • L0 programs use l0_int (int32_t); this layer handles size_t conversion
  • Portable C99 code, no compiler-specific extensions

Imports / Includes

  • stdio.h
  • stdlib.h
  • stdint.h
  • stddef.h
  • string.h
  • stdarg.h
  • errno.h
  • time.h
  • sys/types.h
  • sys/stat.h
  • unistd.h
  • sys/wait.h
  • dea_rt.h
  • dea_siphash.h

Symbols

Macro _RT_ASAN_POISON

_RT_ASAN_POISON

Macro _RT_ASAN_UNPOISON

_RT_ASAN_UNPOISON

Macro DEA_RUNTIME_FCLOSE

DEA_RUNTIME_FCLOSE

Macro DEA_RUNTIME_FILE_INFO_STAT

DEA_RUNTIME_FILE_INFO_STAT

Macro DEA_RUNTIME_REMOVE

DEA_RUNTIME_REMOVE