Hacker News new | past | comments | ask | show | jobs | submit login

This seems fairly focused on Windows? Would be interested to see some Linux stuff.



It's not Windows but MS-DOS, which allows for pure binary executables (COM format) that are nothing but instructions. Thus even a single-byte file is executable (C3, RET - i.e. exit immediately.)

AFAIK Linux has a higher minimum size, as the ELF header alone has to be at least 45 bytes:

http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm...


One could write a com loader for Linux pretty easily.



com programs assume they run on DOS, so you might as well use dosbox for that.

Linux supports some other executable formats for embedded systems, but they don't have much less overhead than ELF.


The problem is that a lot of the demo programs are hooking Int 21h, which is provided by DOS / Windows.


Would it run 16 bit code under x64 Linux (w/o any translation / emulation)? As Windows can't do it (only x32 versions can), thus wondering, if this is a CPU limitation.


My point was around the DOS Int 21h, really. But I see what you mean about the file format.


Use int 80h for UNIX




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: