Linux
$ ls -l ?--------- ? ? ? ? ? tmp $ sudo stat tmp stat: cannot stat `tmp': Permission denied
ã©ããããã®é度ãã§ããã¯ããã©ã¤ãã«ããªãä¾åãããã¨ãezusb.sysã使ã£ã¦ãããã«èº«ã«ãã¿ã¦ããã®ã§ãæåã«é度測å®ããã¦ã¿ãã libusbã¯APIã¨ãã¦ãã¾ãã¡ãªãã ãã©ãç°¡åã«ä½¿ããã®ã§é度測å®ããã¦ã¿ããã«ã¡ã¬ãªã³USB FX2ã®spd_chkã使ãã®ãâ¦
ã¾ããè²ã ã¨äºæ ããã£ã¦ãEZ-USBãLinuxããå¶å¾¡ãããããã ãæã£ã¦ãããã¤ã¹ã¯ä»¥ä¸ã®éã http://optimize.ath.cx/cusb/index.html ã«ã¡ã¬ãªã³USB(AN2135SC) http://optimize.ath.cx/FX2_USB/index.html MINI FX2(CY7C68013A-56) http://optimize.ath.â¦
ã©ãã«ãå ¥ã£ã¦ã¾ããããã»ã kik@as305:~/work/codegolf/hello$ strings small-hello.bin 1HDl no, world!çµæçã«ãããªã£ãã ããªãã ãã©ãã
kik@debian:~$ ls -l small-hello.bin -rwxr-xr-x 1 kik kik 59 2006-08-26 19:44 small-hello.bin kik@debian:~$ ./small-hello.bin Hello, world!p_offset+p_fileszããã¼ã¸å¢çã«åããããç´ã£ãã
mmapã«å¤±æãã¦ãã£ã½ãã execãã©ã®ããã«mmapãããã¨ããã¨ã p_offset ããã¼ã¸å¢çã¾ã§åãæ¨ã¦ãã p_offset+p_filesz ããã¼ã¸å¢çã¾ã§åãä¸ããã ä¸ãå«ããã¼ã¸ãp_vaddrããã¼ã¸å¢çã¾ã§åãæ¨ã¦ã¦ãããã«ããã ãã¡ã®ç°å¢ã ãp_fileszãã§ãâ¦
ç§ã®ä½¿ã£ã¦ãLinuxç®±ã¯ããªãéæ¿ãªæ§æãªãã ããªã⦠ãã¡ã§ãã㨠kik@as305:~/work/codegolf/hello$ uname -a Linux as305.localdomain 2.6.15.6 #1 PREEMPT Mon Mar 13 00:33:25 JST 2006 i686 pentium3 i386 GNU/Linux kik@as305:~/work/codegolf/helloâ¦
kik@as305:~/work/codegolf/hello$ ls -l tiny-hello.bin -rwxr-xr-x 1 kik users 59 2006-11-10 08:35 tiny-hello.bin kik@as305:~/work/codegolf/hello$ ./tiny-hello.bin || echo error Hello, world! kik@as305:~/work/codegolf/hello$ ã!ããã¨ãã¨1Bâ¦
kik@as305:~/work/codegolf/hello$ make nasm -o small-hello.bin small-hello.asm && chmod +x small-hello.bin kik@as305:~/work/codegolf/hello$ ls -l small-hello.bin -rwxr-xr-x 1 kik users 63 2006-11-09 21:12 small-hello.bin kik@as305:~/work/coâ¦