TCP HTTP Server written in Assembly
canonical.org
TCP HTTP Server written in Assembly
1–10 of 74 posts
Re: TCP HTTP Server written in Assembly
#2Re: TCP HTTP Server written in Assembly
#3As a web developer who isn't familiar with assembly or any web server more barebones than nginx, what benefits does something like this provide? Speed? Could this be a solution for an extremely simple directory/static file web server?
Re: TCP HTTP Server written in Assembly
#4As a web developer who isn't familiar with assembly or any web server more barebones than nginx, what benefits does something like this provide? Speed? Could this be a solution for an extremely simple directory/static file web server?
This is obviously a toy, or PoC.
Re: TCP HTTP Server written in Assembly
#5Re: TCP HTTP Server written in Assembly
#6Re: TCP HTTP Server written in Assembly
#7As a web developer who isn't familiar with assembly or any web server more barebones than nginx, what benefits does something like this provide? Speed? Could this be a solution for an extremely simple directory/static file web server?
The TCP part comes from C code in the kernel, so this headline is a little misleading ;-).
Re: TCP HTTP Server written in Assembly
#8Re: TCP HTTP Server written in Assembly
#9My comments as an inexperienced assembly developer, assuming this is optimising for binary size:
- The pug/doN macros do an extra reg-reg copy if passed a register - and the recursive definition calls pop/pop/pop instead of just add %esp, -4*N, you could shave a few bytes
- AT&T syntax will always look weird to me, but the heavy use of macros and local labels is quite elegant
- A little bit of candid swearing in the comments? Fine by me, but is this officially associated with canonical?