Blink 1.0 officially released, the smallest x86 Linux emulator

ChatGPT has been soaring for 160 days, and the world is no longer what it used to be.

A new artificial intelligence Chinese website https://ai.weoknow.com
updates the available chatGPT resources available in China every day


Blink 1.0 has been officially released.

Blink is an unprivileged userspace virtual machine that supports emulation of x86-64-linux binaries on any POSIX platform and claims to be the smallest x86 Linux emulator.

In total, it's a 220kb dependency-free static binary that implements about 600 x86 instructions and 180 Linux system calls. So Blink is pretty good at running simple command-line programs.

./configure        # use `./configure --help | less` for help
make -j8           # build blink and blinkenlights
doas make install  # doas is modern sudo
blink program      # use `man blink` for help

Blink includes a compact JIT that is in some cases up to 2x faster than Qemu for use cases like ephemeral programs. The reason is Blink's baseline JIT, which uses a printf-style DSL to quickly generate code. This means that Blink has an easy-to-use codebase (only 63,500 lines of ANSI C11 code).

Although Blink is a command-line tool, it also has a TUI interface (called  blinkenlights) that supports real-time debugging and visualization of programs.

Here's an example of running the bare-metal Game of Life demo, written in Rust, booting from the BIOS in i8086 mode, booting into long mode, and drawing to the Blinkenlight text-based CGA display.

man blinkenlights
blinkenlights -jmr third_party/gameoflife/gameoflife.bin
# Press CTRL-T several times for Turbo mode

Blink works best with command-line programs, although it also supports emulating GUI applications. Below is a screenshot of Blink running Emacs GUI on Debian Linux:

See Release Notes for details: https://github.com/jart/blink/releases/tag/1.0.0


ChatGPT has been soaring for 160 days, and the world is no longer what it used to be.

A new artificial intelligence Chinese website https://ai.weoknow.com
updates the available chatGPT resources available in China every day

Guess you like

Origin blog.csdn.net/zyqytsoft/article/details/131075680