Daily Shaarli

All links of one day in a single page.

December 15, 2013

Simple http server in assembly

Minimalish assembly TCP HTTP server program for i386 Linux. It

serves up files from the directory where you run it on port

    .equiv port_number, 8086

Gloriously filthy: defines only two subroutines; all variables are

global. Depends on the C libraries. 3152 bytes of executable

with dietlibc, stripped; only 1000 bytes of that is this code.