-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

andrey mirtchovski wrote:
> i have some variations on a theme:
> 
> linux, i386: main() { syscall(4, 1, "hello world\n", 12); } (~6KB
> dynamically linked)
> linux, x86: main() { syscall(1, 1, "hello world\n", 12); } (~6KB, 4KB
> stripped; 2.4megs statically linked, 400KB statically linked and
> stripped)
You can also use some alternative libcs for a reduced footprint, or
eliminate libc altogether with some simple inline assembly.  GNU is
really bloated.

I'm not sure where one draws the line though, theres also is a lot of
code and memory behind that syscall before anything is seen on the
screen, which could be considered part of the "linked" code.

One could always poke data into video memory and avoid all that, but
that does not get us the "Are you sure?" dialog box or status bars that
go from 0 to 100% over and over again.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqLNrUACgkQl3JZTBu3/9naawCdF9Hlx2niYJJpnbT52tLobmU6
btEAmQGuBC629h7Xx7fu6FKD8NE5yRr7
=JBrq
-----END PGP SIGNATURE-----

Reply via email to