Live data from Hacker News

HelloAssembly: The smallest possible complete Windows application (2021)

github.com

1–10 of 53 posts

Re: HelloAssembly: The smallest possible complete Windows application (2021)

#2
love this and it's timely as I think with AI more of my code will just be native assembly for example: https://github.com/taf2/tic-tac-toe my m series native assembly based tic tac toe windowed game... very portable too you just simply execute codex --yolo port my app to x y z host...

Re: HelloAssembly: The smallest possible complete Windows application (2021)

#4
post #3

I should try FASM to see if it produces a smaller size exe. COM files are small, but 16-bit DOS was the thing back in the day - 100H yeah and basically a memory dump.

> 100H yeah and basically a memory dump

... the days! :)

Re: HelloAssembly: The smallest possible complete Windows application (2021)

#9
post #2

love this and it's timely as I think with AI more of my code will just be native assembly for example: https://github.com/taf2/tic-tac-toe my m series native assembly based tic tac toe windowed game... very portable too you just simply execute codex --yolo port my app to x y z host...

I haven't played with yolo yet. I'll have to use my airgapped, old Lenovo ThinkPad for this! Whenever I see yolo, I can't stop thinking of Joseph Redmon's YOLO and his astounding resume format!

Re: HelloAssembly: The smallest possible complete Windows application (2021)

#10
Interesting to bypass CRT and work directly against the Windows API. That said, these rely on USER.32.DLL and KERNEL32.DLL to do the majority of the heavy lifting.

It's a bit like 'smallest hello world in assembly' but the code is just setting up the calling convention and then passing the zero-terminated character string into `write`. Cool, but that could be done a bit more straightforwardly in C, too. A lot of assembly (including in the linked repository) is book-keeping for the platform's calling convention.

Post reply on HN