How yashtajne/pure works
Pure is a low-level C runtime and standard library, not a standalone application. A program enters through the platform-specific startup code, which initializes process context and calls main; the library then provides core text and memory primitives, streams and console access, and operating-system facilities such as files, directories, environment variables, and processes. The graph preserves these distinct capabilities, including unsampled modules. Relationship evidence is limited to the supplied excerpts and SOURCE INDEX; unsupported connections are omitted.
Main entry points: Start.c Process startup · String.c Managed strings · Stream.c Streams · Charseq.c Character sequences
Components 27
Runtime and platform
- Process startup
Implementation/Std/Start.c - Platform ABI
Platform/Linux/Kernel.h - Windows API bindings
Platform/Windows/Kernel32.h - Process context
Implementation/Std/Self.c
Core primitives
- Runtime types
Pure.h - ASCII conversion
Implementation/Core/ASCII.c - Character sequences
Implementation/Core/Charseq.c - Core arrays
Implementation/Core/Array.c - Core memory
Implementation/Core/Memory.c - Core strings
Implementation/Core/String.c
Standard data
- Standard arrays
Implementation/Std/Array.c - Managed sequences
Implementation/Std/Charseq.c - Managed strings
Implementation/Std/String.c - Standard memory
Implementation/Std/Memory.c
Input and output
- Streams
Implementation/Std/IO/Stream.c - Console I/O
Implementation/Std/IO/Console.c - Formatted input
Implementation/Std/IO/Read.c - Output writing
Implementation/Std/IO/Write.c - Formatting
Implementation/Std/IO/Format.c
Operating system
- File operations
Implementation/Std/OS/File.c - Directory operations
Implementation/Std/OS/Directory.c - Directory traversal
Implementation/Std/OS/DirectoryWalker.c - Path operations
Implementation/Std/OS/Path.c - Environment access
Implementation/Std/OS/Env.c - Process control
Implementation/Std/OS/Process.c - Argument parsing
Implementation/Std/CLI/ArgParse.c
Other components
- C program
Connections 9
- Process startup → C program: calls main
Implementation/Std/Start.c - Process startup → Process context: sets context
Implementation/Std/Start.c - Process startup → Directory operations: gets current directory
Implementation/Std/Start.c - Process startup → Streams: sets console streams
Implementation/Std/Start.c - Process startup → Managed strings: builds arguments
Implementation/Std/Start.c - Process startup → Managed sequences: parses environment
Implementation/Std/Start.c - Character sequences → Core memory: copies text
Implementation/Core/Charseq.c - Managed strings → Standard memory: allocates and copies
Implementation/Std/String.c - File operations → Streams: stores stream state
Implementation/Std/OS/File.c