How errornointernet/asmfetch works
Project type and purpose
• asmfetch is a command‐line “fetch” tool written entirely in x86-64 Assembly for Linux.
• Its sole purpose is to gather and display system information (username, hostname, OS, kernel, shell, uptime, desktop, memory/disk usage, etc.) in under 150 µs with zero external dependencies.
File structure
• Top‐level .S files (asmfetch.S, print.S, memory.S, sysinfo.S, etc.) each implement a specific piece of functionality.
• Subdirectories group related functionality:
• kernel/ – different syscall wrappers for kernel info
• logo/ – hardcoded ASCII logos per distribution
• shell/ – detection of shell and path variables
• symbols.S holds all the glyphs and formatting symbols.
• No scripts or glue code: everything is linked together by the assembler and Linux linker.
README for additional insights
• Lists the data sources: environment variables, /etc/os-release, XDG variables, uptime, memory, disk stats, uname syscall.