forked from Francesco149/nolibc-httpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme with credits to tleydxdy
- Loading branch information
1 parent
7d6394b
commit 16eb1e4
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
single-page http server for x86\_64 linux in a 5kb static binary, | ||
single-page http server for x86\_64 linux in a 1kb static binary, | ||
doesn't depend on libc | ||
|
||
huge credits to @tleydxdy for bringing this down from 5kb to 1kb and | ||
<1kb with the asm version | ||
|
||
# build and run | ||
``` | ||
./build.sh | ||
./httpd 8080 test.html | ||
``` | ||
|
||
if you don't have gcc, change build.sh to match your compiler | ||
|
||
build even smaller asm version with a custom elf header, < 1kb | ||
|
||
requires nasm | ||
|
||
``` | ||
./asm.sh | ||
./httpd 8080 test.html | ||
``` |