android²»Ö§³Ötab²¹È«ºÍctrl+cµÄ½â¾ö°ì·¨
½øÈëandroid shellºó»á´òÓ¡£º
sh: can't access tty; job control turned off
ÊäÈëtab¼üûÓв¹È«£¬ÊäÈëctrl+cûÓÐÖÕÖ¹µ½ÏÂÒ»ÐУ¬¶øÊÇÊäÈëÒ»¸öÂÒÆß°ËÔãµÄ×Ö·û£¬
ûÓÐcpÃüÁîµÈµÈµÈµÈ£¬
Äã»á·¢ÏÖ£¬ÕâËûÂ軹ÊÇlinuxÂð,ÕâÈÕ×Óû·¨¹ýÁË£¬¼òÖ±£¡
ÒªÖ§³ÖһЩ³£ÓõÄÃüÁ
ÐèÒªÖØбàÒëÒ»¸öbusybox£¬
make menuconfig
ÏÈÑ¡ÔñÄãÏëÒªµÄÄÇЩÃüÁȻºóÈç¹ûÒªÖ§³Ötab²¹È«µÄ»°£¬
Ñ¡Ôñ£¬
Busybox Settings-->
Busybox Library Tuning-->
Tab completion
Ñ¡ÖоͿÉÒÔÁË
È»ºó½øÈëandroid´®¿Ú£¬Ö´ÐÐbusybox sh
¾Í¿ÉÒÔÁË¡£
ĬÈÏûÓÐcpº¯Êý£¬
ÏÈÖØÐÂmountÒ»ÏÂT¿¨(ĬÈϵļÓÔØT¿¨µÄ·½Ê½ÊDz»Ö§³Ö¸Ä±äȨÏ޵ģ©£¬
È»ºó
cd /sdcard
chmod 777 busybox
./busybox cp ./busybox /data/bin/
¾Í¿ÉÒÔÁË¡£
²¹È«µÄÔÀíÈçÏ£º
±¾ÖÊÒ²¾ÍÊǶÁµ½tab¼ü¾Í¿ªÊ¼²éÕÒ£¬ÕÒµ½Æ¥ÅäµÄ¾ÍÏÔʾ³öÀ´¡£
ÖÁÓÚctrl+c²»Ö§³ÖµÄ½â¾ö°ì·¨ÊÇ£º
ÐÞ¸Äsystem/core/init/init.c ÀïÃæµÄ
static char *console_name = "/dev/ttyS2";
ÕâÀïÒÔÇ°ÊÇ/dev/console,
ÖØбàÒ룺
source build/envsetup.sh
mmm system/core/init/
°Ñ±àÒë³öÀ´µÄinit·Åµ½ÄÚºËÀïÃæµÄrootĿ¼£¬
ÖØÐÂ×öÒ»¸öÄÚºËÉÕ½øÈ¥£¬
ÕâÑù¾Í¿ÉÒÔÖ§³Öctrl+cÁË,
µ±È»Ç°ÌáÊÇ/dev/ttyS2ȷʵÊÇ´®¿Ú¡£
Ïà¹ØÎĵµ£º
Ò»¡¢¿ÉÖØÈ뺯Êý
1£©Ê²Ã´ÊÇ¿ÉÖØÈëÐÔ£¿
¿ÉÖØÈ루reentrant£©º¯Êý¿ÉÒÔÓɶàÓÚÒ»¸öÈÎÎñ²¢·¢Ê¹Ó㬶ø²»±Øµ£ÐÄÊý¾Ý´íÎó¡£Ïà·´£¬ ²»¿ÉÖØÈ루non-reentrant£©º¯Êý²»ÄÜÓɳ¬¹ýÒ»¸öÈÎÎñËù¹²Ïí£¬³ý·ÇÄÜÈ·±£º¯ÊýµÄ»¥³â£¨»òÕßʹÓÃÐźÅÁ¿£¬»òÕßÔÚ´úÂëµÄ¹Ø¼ü²¿·Ö½ûÓÃÖжϣ©¡£¿ÉÖØÈ뺯Êý¿ÉÒÔÔÚÈÎÒâʱ¿Ì±»Öжϣ¬ÉÔºóÔÙ¼ÌÐøÔËÐУ¬²»»á¶ªÊ§Êý¾Ý ......
Ò»¡¢±à¼JavaÔ´Îļþ
=============================================
Hello.java
=============================================
package test;
public class Hello
{
static
{
try
{
//´Ë´¦¼´Îª±¾µØ·½·¨ËùÔÚÁ´½Ó¿âÃû
&n ......
#1Â¥ µÃ·Ö£º0»Ø¸´ÓÚ£º2009-12-26 15:37:26
¼ÓÃÜÓкܶàÖÖ·½·¨.ͬʱC#Ò²ÌṩÁ˺ܶà¼ÓÃÜ·½·¨.ÄãÐèÒª¼ÓÃܺͽâÃÜÔÚ¼ÓÃÜËã·¨ÉÏÐèҪʹÓöԳƼÓÃÜ.ÎÒ¸øÄãÌṩһ¸ö¼òµ¥µÄËã·¨.ÔÚ±£´æµÄʱºò¿ÉÒÔʹÓöþ½øÖƵķ½Ê½À´±£´æµ½Îļþ.
C# code
using System;
using System.IO;
using System.Text;
using System.Security.Cryptography ......
Ï°¹ßÓÃRAD7,ËùÒÔÓÃÆðÀ´eclipse for C ûÓÐÎÊÌâ¡£
ÏÂÔØeclipse3.5:
°²×°£ºmingw£¨Èç¹ûÓÃC++, ¾ÍҪѡÉÏg++£©
°²×°£ºmsys
°²×°ºó£¬ÒªÉèÖÃһϻ·¾³±äÁ¿£º
ÔÚpathÀïÃæ¼ÓÈëmingwºÍmsysµÄbinĿ¼·¾¶¡£È磺c:\mingw\bin;c:\msys\bin
´ò¿ªeclipseн¨Ò»¸öc project!
È»ºó¾Í¿ÉÒÔÓÃÁË,ÒòΪËüÒѾ°ïÄãÕÒµ½ÁËGCC make ÁË¡£ ......
CÓïÑÔÖÐÅÅÐòµÄËã·¨ÓкܶàÖÖ£¬ÏµÍ³Ò²ÌṩÁËÒ»¸öº¯Êýqsort()¿ÉÒÔʵÏÖ¿ìËÙÅÅÐò¡£ÔÐÍÈçÏ£º
void qsort(void *base, size_t nmem, size_t size, int (*comp)(const void *, const void *));
Ëü
¸ù¾ÝcompËùÖ¸ÏòµÄº¯ÊýËùÌṩµÄ˳Ðò¶ÔbaseËùÖ¸ÏòµÄÊý×é½øÐÐÅÅÐò£¬nmemΪ²Î¼ÓÅÅÐòµÄÔªËظöÊý£¬sizeΪÿ¸öÔªËØËùÕ¼µÄ×Ö½ÚÊý¡£Àý È ......