Mojo package
sys
System runtime: I/O, hardware info, FFI, intrinsics, compile-time utils.
The sys package provides low-level access to system functionality and runtime
information. It includes tools for interacting with the operating system,
querying hardware capabilities, interfacing with foreign code, and accessing
compiler intrinsics. This package bridges Mojo code and the underlying system
environment.
Use this package for system-level programming, hardware-specific optimizations, interfacing with C libraries, or when you need direct access to platform capabilities and compiler features.
Packages
-
ffi: Implements a foreign functions interface (FFI).
Modules
-
arg: Implements functions and variables for interacting with execution and system environment. -
compile: Implements functions that return compile-time information. -
debug: This module includes the debug hook functions. -
info: Implements methods for querying the host target info. -
intrinsics: Defines intrinsics. -
param_env: Implements functions for retrieving compile-time defines. -
terminate: This module includes the exit functions.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!