Tuesday, March 2, 2010

Hello World - 最小 code size

Hello World的最小code size為29 bytes(由128 到 29 byte !!!)

$ ls -l helloworld
-rwxr-xr-x 1 lungswu lungswu 29 2010-03-02 11:42 helloworld
$
$ ./helloworld
Hello World
$

其方式....















































$ cat > helloworld
#!/bin/sh
echo "Hello World"
$
$ chmod a+x helloworld
$ ./helloworld
Hello World
$
$ ls -l helloworld
-rwxr-xr-x 1 lungswu lungswu 29 2010-03-02 11:47 helloworld
$
$ file helloworld
helloworld: POSIX shell script text executable
$
$

(Hello World - code size系列 完)

1 comment: