From 2fea95e10025d1ef256413cae6fd897c8db423a5 Mon Sep 17 00:00:00 2001 From: root <> Date: Sat, 17 May 2025 10:46:05 +0000 Subject: [PATCH] nice readme; fix makefile --- makefile | 2 ++ readme.md | 24 +++++++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/makefile b/makefile index 054cc15..de34a36 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,5 @@ main: nasm -g -f elf64 -o main.o main.s ld -o main main.o + +.PHONY: main diff --git a/readme.md b/readme.md index cdee2fb..77bf84a 100644 --- a/readme.md +++ b/readme.md @@ -1,9 +1,19 @@ -# x86_64 assembly +Very small HTTP server written in x86-64 assembly https://en.wikipedia.org/wiki/X86-64 -https://josemariasola.github.io/reference/assembler/Stanford%20CS107%20Guide%20to%20x86-64.pdf -https://www.bencode.net/blob/nasmcheatsheet.pdf -https://x64.syscall.sh/ -https://userpages.cs.umbc.edu/tsimo1/CMSC313/nasmdoc/html/nasmdoc3.html -https://web.stanford.edu/class/cs107/resources/x86-64-reference.pdf +- one thread +- event loop with poll(2) +- targets x86-64 linux -https://engineering.purdue.edu/ece264/22su/hw/ec02/resources/x64-intro.pdf +# Why? + +Why not? + +# x86-64 assembly resources + +- https://josemariasola.github.io/reference/assembler/Stanford%20CS107%20Guide%20to%20x86-64.pdf +- https://www.bencode.net/blob/nasmcheatsheet.pdf +- https://x64.syscall.sh/ +- https://userpages.cs.umbc.edu/tsimo1/CMSC313/nasmdoc/html/nasmdoc3.html +- https://web.stanford.edu/class/cs107/resources/x86-64-reference.pdf + +- https://engineering.purdue.edu/ece264/22su/hw/ec02/resources/x64-intro.pdf