Hello World! on modern processors.

From: Fred Cisin <cisin_at_xenosoft.com>
Date: Tue Aug 21 22:01:03 2001

> Of course you should be able to go even smaller on a linux system by going to
> assembly and using the interrupt version of syscall().
> . . .
> It's still annoying that 36 bytes of code and data end up in a 404 byte
> file. I suppose that's the price of a code loader that supports dynamic
> linking. Even if no files are linked, you need to tell it that no files
> are linked.

23 bytes in MS-DOS as a .COM file.

ORG 100h
        MOV AH, 9
        MOV DX, offset msg0
        INT 21h
        INT 20h
msg0 DB "Hello, World!$"


> It's not like it really matters. The 6502 version on the Apple would still
> have taken a full disk block.
True. It doesn't accomplish much to squeeze more once you're below
the disk space allocation granularity.

--
Grumpy Ol' Fred        cisin_at_xenosoft.com
Received on Tue Aug 21 2001 - 22:01:03 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:33:34 BST