|
|


22019, 1/1101 |
![]() |
![]() |
![]() |
![]() |
|
wkdtjdrb98 | ||||||
|
http://- | ||||||
|
¾ÆÀÌÆÌÀ» ¸®´ª½ºÃ³·³ ¾²±â | ||||||
|
http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Board&no=22794 [º¹»ç]
Hit : 11323 Date : 2012/01/26 12:56
|
|||||||
| ![]() |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Cruelant | Apt-get ¸í·É¾î ÆÐŰÁö ÁøÂ¥ Çʼö¿ä ¤» ±×°Å ÀÖ¾î¾ß gcc°í vi°í ±ò ¼öÀÖÀ½ ¤» |
2012/01/26 | |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ¾ÆÀÌÆÌµµ ±×·±°Ô ‰ç½À´Ï±î ¤»¤»¤» ¾Æ ¾ÆÀÌÆÌ ²ø¸°´Ù.. ÇÏÁö¸¸ Àú´Â ±Ùº»ÀÌ ¸®´ª½ºÀÎ ¾Èµå·ÎÀ̵尡 ÀÕÀ¸´Ï±î ±¥..±¦Âú´Ù±¸¿ê ÈïÈï |
2012/01/26 | |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| phpmyadmin | IOSµµ µ¥ºñ¾È °è¿À̴ϱî apt-get°°Àº°É·Î ÆÐŰÁö ±î½Ã¸é µÉµíÇÕ´Ï´Ù. http://yadong.tistory.com/124 |
2012/01/26 | |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| gcc¸¦ ¼³Ä¡Çصµ Çì´õÆÄÀÏÀÌ ARM-CPU based Header¶ó°í ÇØ¼ stdio.h°¡ ¾ø´ä´Ï´Ù. ¤¡- printf("Hello World"); Çߴµ¥ ¾ÈµÈ 1ÀÎ ¤¡- ÆÄÀ̽ãÀº Àִµ¥ ¾ÈÇØºÁ¼ ¸ð¸£°Ú³×¿ä; ±×¸®°í gcc¿Í ÆÄÀ̽㠴٠¾ÆÀÌÆÌ1¼¼´ë¿Í 2¼¼´ë¿ëÀ¸·Î ¾Ë°í ÀÖ¾î¿ä ±× ÀÌÈļ¼´ë´Â CPU°¡ ±³Ã¼µÇ¾î¼ ¾ÈµÈ´Ù°í µé¾ú¾î¿ä. |
2012/01/27 | |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| phpmyadmin | @º°ºûÀ»´ã¾Æ Àü 4S»ç¿ëÀÚÀε¥ cydia¿¡¼ gcc°Ë»öÇϸé fake-libgcc°¡ ÀÖ½À´Ï´Ù. ¿äÁò¿£ ±×°Å ±ò¸é °ü·ÃµÈ ÆÐŰÁöµéµµ °°ÀÌ ±ò¾ÆÁÖ´õ±º¿©¤»¤»..(fake-libgcc Æ÷ÇÔ, GNU C Compiler, iphone-gcc Headers) ½ÇÇè»ï¾Æ helloworld printf·Î Ãâ·ÂÇϴ°͵µ ÇØ”f´Âµ¥ Àߵ˴ϴÙ. gdbµµ ±ò¾ÆÁá°í pythonµµ ±ò¸³´Ï´Ù. phpmyadmin:~ root# vim a.c phpmyadmin:~ root# apt-get install python Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libffi libxml2 libxml2-lib The following NEW packages will be installed: libffi libxml2 libxml2-lib python 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 11.1MB of archives. After this operation, 44.6MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://apt.saurik.com ios/675.00/main libxml2-lib 2.6.32-3 [1218B] Get:2 http://apt.saurik.com ios/675.00/main libxml2 2.6.32-6 [90.6kB] Get:3 http://apt.saurik.com ios/675.00/main libffi 130618-4 [15.0kB] Get:4 http://apt.saurik.com ios/675.00/main python 2.5.1-5 [11.0MB] Fetched 11.1MB in 24s (461kB/s) Selecting previously deselected package libxml2-lib. (Reading database ... 4470 files and directories currently installed.) Unpacking libxml2-lib (from .../libxml2-lib_2.6.32-3_iphoneos-arm.deb) ... Selecting previously deselected package libxml2. Unpacking libxml2 (from .../libxml2_2.6.32-6_iphoneos-arm.deb) ... Selecting previously deselected package libffi. Unpacking libffi (from .../libffi_130618-4_iphoneos-arm.deb) ... Selecting previously deselected package python. Unpacking python (from .../python_2.5.1-5_iphoneos-arm.deb) ... Setting up libxml2-lib (2.6.32-3) ... Setting up libxml2 (2.6.32-6) ... Setting up libffi (130618-4) ... Setting up python (2.5.1-5) ... phpmyadmin:~ root# cat a.c main() { printf("Hello World!\n"); } phpmyadmin:~ root# gcc -o a a.c a.c: In function 'main': a.c:3: warning: incompatible implicit declaration of built-in function 'printf' phpmyadmin:~ root# ./a Hello World! phpmyadmin:~ root# uname -a Darwin phpmyadmin 11.0.0 Darwin Kernel Version 11.0.0: Tue Nov 1 20:34:16 PDT 2011; root:xnu-1878.4.46~1/RELEASE_ARM_S5L8940X iPhone4,1 arm N94AP Darwin phpmyadmin:~ root# python -c 'print "Hello World!\n"' Hello World! phpmyadmin:~ root# python Python 2.5.1 (r251:54863, xx/xx/xx, xx:xx:xx) [GCC 4.2.1 (Based on Apple Inc. build 5555)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> ´ë½Å ¹öÀüÀÌ ³·½À´Ï´Ù ¤» [3]+ Stopped(SIGTSTP) python phpmyadmin:~ root# gdb a GNU gdb 6.3.50.20050815-cvs (Fri May 20 08:08:42 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=arm-apple-darwin9 --target="...Reading symbols for shared libraries ... done (gdb) disas main Dump of assembler code for function main: 0x00002224 <main+0>: push {r7, lr} 0x00002228 <main+4>: add r7, sp, #0 ; 0x0 0x0000222c <main+8>: ldr r3, [pc, #12] ; 0x2240 <main+28> 0x00002230 <main+12>: add r3, pc, r3 0x00002234 <main+16>: mov r0, r3 0x00002238 <main+20>: bl 0x2268 <dyld_stub_puts> 0x0000223c <main+24>: pop {r7, pc} 0x00002240 <main+28>: andeq r0, r0, r0, lsl #1 End of assembler dump. »ý¼ÒÇÑ asmÀÌ º¸ÀÌ´Â gdb°í¿©.. phpmyadmin:~ root# find / -name stdio.h /private/var/stash/include.A0WfBg/stdio.h stdio.h´Â iphone-gcc HeadersÆÐŰÁö¿¡ Æ÷ÇÔµÇÀÖ´Â°Í °°³×¿ä. |
2012/01/27 | |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ÀÚ///Á¦°¡ ÃÑÁ¤¸® ÇØµå¸®°Ú½À´Ï´Ù... ¿©±â¿¡ ¿Ã·ÁÁ®ÀÖ´Â °Ô½Ã¹° Áß¿¡¼ OS °èº¸µµ¸¦ °Ë»öÇØº¸¼¼¿ä. ¾Æ½Ã´Ù½ÃÇÇ Mac OS ½Ã¸®Áî´Â Unix¿¡¼ ÆÄ»ýµÇ¾ú°í, Linux´Â Unix¸¦ º»µû¼ ¸¸µé¾ú°í... iOS´Â µ¥ºñ¾È °è¿°°±äÇÕ´Ï´Ù¸¸... (debÆÄÀÏÀÇ ÀÇȤ) ±×·±µ¥ iOS´Â 10.6 ¹öÀüÀº Snow Leopard¿¡¼ ÆÄ»ýµÇ¾ú°í.... À½;;; Á¶¸¸°£¿¡ Á¤¸®Çؼ ¿Ã¸®µµ·Ï ÇÏÁÒ. | 2012/02/14 | |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| http://www.hackerschool.org/Sub_Html/HS_Community/?Type=Board&BID=Free_Board | 2012/02/14 | |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||