½« Linux Ó¦ÓóÌÐòÒÆÖ²µ½ 64 λϵͳÉÏ
ƽ»¬Ç¨ÒƵļ¼Çɺͼ¼Êõ
ÎĵµÑ¡Ïî
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width="16"
height="16" src="//www.ibm.com/i/c.gif"/></td><td class="small"
width="122"><p><span class="ast">δÏÔʾÐèÒª JavaScript
µÄÎĵµÑ¡Ïî</span></p></td></tr>
´òÓ¡±¾Ò³
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º ³õ¼¶
Harsha S. Adiga
(haradiga@in.ibm.com
), Èí¼þ¹¤³Ìʦ, IBM
2006 Äê 5 ÔÂ 18 ÈÕ
Ëæ×Å 64 λÌåϵ½á¹¹µÄÆÕ¼°£¬Õë¶Ô 64 λϵͳ׼±¸ºÃÄúµÄ Linux® Èí¼þÒѾ±äµÃ±ÈÒÔÇ°¸üΪÖØÒª¡£ÔÚ±¾ÎÄÖУ¬Äú½«Ñ§Ï°ÈçºÎÔÚ½øÐÐÓï¾äÉùÃ÷¡¢¸³Öµ¡¢Î»ÒÆ¡¢ÀàÐÍת»»¡¢×Ö·û´®¸ñʽ»¯ÒÔ¼°¸ü¶à²Ù×÷ʱ£¬·ÀÖ¹³öÏÖ¿ÉÒÆÖ²ÐÔȱÏÝ¡£
Linux ÊÇ¿ÉÒÔʹÓà 64 λ´¦ÀíÆ÷µÄ¿çƽ̨²Ù×÷ϵͳ֮һ£¬ÏÖÔÚ 64
λµÄϵͳÔÚ·þÎñÆ÷ºÍ×ÀÃæ¶Ë¶¼ÒѾ·Ç³£³£¼ûÁË¡£ºÜ¶à¿ª·¢ÈËÔ±ÏÖÔÚ¶¼ÃæÁÙ×ÅÐèÒª½«×Ô¼ºµÄÓ¦ÓóÌÐò´Ó 32 λ»·¾³ÒÆÖ²µ½ 64 λ»·¾³ÖС£Ëæ×Å
Intel® Itanium® ºÍÆäËû 64 λ´¦ÀíÆ÷µÄÒýÈ룬ʹÈí¼þÕë¶Ô 64 λ»·¾³×öºÃ×¼±¸±äµÃÈÕÒæÖØÒªÁË¡£
Óë UNIX® ºÍÆäËûÀà UNIX ²Ù×÷ϵͳһÑù£¬Linux ʹÓÃÁË LP64 ±ê×¼£¬ÆäÖÐÖ¸ÕëºÍ³¤ÕûÊý¶¼ÊÇ 64
λµÄ£¬¶øÆÕͨµÄÕûÊýÔòÒÀÈ»ÊÇ 32 λµÄ¡£¾¡¹ÜÓÐЩ¸ß¼¶ÓïÑÔ²¢²»»áÊܵ½ÕâÖÖÀàÐÍ´óС²»Í¬µÄÓ°Ï죬µ«ÊÇÁíÍâһЩÓïÑÔ£¨ÀýÈç C
ÓïÑÔ£©È´µÄÈ·»áÊܵ½ÕâÖÖÓ°Ïì¡£
½«Ó¦ÓóÌÐò´Ó 32 λϵͳÒÆÖ²µ½ 64
λϵͳÉϵŤ×÷¿ÉÄÜ»á·Ç³£¼òµ¥£¬Ò²¿ÉÄÜ»á·Ç³£À§ÄÑ£¬ÕâÈ¡¾öÓÚÕâЩӦÓóÌÐòÊÇÈçºÎ±àдºÍά»¤µÄ¡£ºÜ¶àËöËéµÄÎÊÌⶼ¿ÉÄܵ¼Ö²úÉúÎÊÌ⣬¼´Ê¹ÔÚÒ»¸ö±àдµÃ·Ç³£ºÃ
µÄ¸ß¶È¿ÉÒÆÖ²µÄÓ¦ÓóÌÐòÖÐÒ²ÊÇÈç´Ë£¬Òò´Ë±¾ÎĽ«¶ÔÕâЩÎÊÌâ½øÐйéÄÉ×ܽᣬ²¢¸ø³ö½â¾öÕâЩÎÊÌâµÄһЩ·½·¨½¨Òé¡£
64 λµÄÓŵã
32
λƽ̨ÓкܶàÏÞÖÆ£¬ÕâЩÏÞÖÆÕýÔÚ×è°´óÐÍÓ¦ÓóÌÐò£¨ÀýÈçÊý¾Ý¿â£©¿ª·¢ÈËÔ±µÄ¹¤×÷½øÕ¹£¬ÓÈÆä¶ÔÄÇЩϣÍû³ä·ÖÀûÓüÆËã»úÓ²¼þÓŵãµÄ¿ª·¢ÈËÔ±À´Ëµ¸üÊÇÈç´Ë¡£¿Æѧ
¼ÆËãͨ³£ÒªÒÀÀµÓÚ¸¡µã¼ÆË㣬¶øÓÐЩӦÓóÌÐò£¨ÀýÈç½ðÈÚ¼ÆË㣩ÔòÐèÒªÒ»¸ö±È½ÏÏÁÕµÄÊý×Ö·¶Î§£¬µ«ÊÇÈ´ÒªÇó¸ü¸ßµÄ¾«¶È£¬Æ侫¶È¸ßÓÚ¸¡µãÊýËùÌṩµÄ¾«¶È¡£64
λÊýѧÔËËãÌṩÁËÕâÖ
Ïà¹ØÎĵµ£º
linuxÄÚºËinit½ø³Ìº¯ÊýµÄ²¿·Ö´úÂëÈçÏ£º 01 if (execute_command)
02 run_init_process(execute_command);
03
04 run_init_process("/sbin/init");
05 run_init_process("/etc/init");
06 run_init_process("/bin/init");
07 run_init_process("/ ......
1¡¢ÏµÍ³Ê±ÖÓ(System Clock)ÓëʵʱʱÖÓ(Real Time Clock)
ʵʱʱÖÓÖ¸µÄÊÇÓ²¼þʱÖÓ£¬¶øϵͳʱÖÓÖ¸µÄÊÇÈí¼þʱÖÓ£¬´æÔÚÓÚLinuxϵͳ֮ÖС£µ±ÏµÍ³Æô¶¯Ê±£¬Linux»á´ÓÓ²¼þ¶Áȡʱ¼ä×öΪϵͳʱ¼ä£¬Ö®ºó±ãÒ»Ö±²ÉÓÃϵͳʱ¼ä¡£LinuxÃüÁîdate¿ÉÒÔÓÃÀ´ÉèÖÃϵͳʱÖÓ£¬¶øhwclock»òÕßclockÔòÓÃÀ´ÉèÖÃʵʱʱÖÓ£¬¼´Ó²¼þʱÖÓ¡£
2¡¢Ê±ÖÓƵÂÊ
µ¥ ......
Linux C + + Training
Syllabus
________________________________________
1, Linux Operating System
System Environment: Ubuntu GNU / Linux, RedHat Linux AS5,
FreeBSD
Course Requirements: proficient use of commonly used Linux
/ UNIX commands.
Time: 1 week.
______________________________ ......
ÆäʵVIMÒ²ÄܰѱàÒë µ÷ÊÔ¼¯³ÉÔÚÒ»Æð£¬ÏñÊÇÒ»¸öIDEÒ»Ñù¡£
Ê×ÏÈÏÖÔÚVIMµÄÔ´Â룬ÒòΪҪ¼¯³Éµ÷ÊÔ»·¾³µÄ»°ÐèÒªÖØбàÒëVIM²ÅÐУ¬ËùÒÔÎÒÃDz»ÈçÖØа²×°Ò»¸ö¡£
VIMµÄÏÖÔÚµØÖ·£º
http://www.vim.org/sources.php
È»ºóÏÂÔØVIMGDB£¬ÕâÊÇvimµÄ¼¯³Éµ÷ÊÔ»·¾³µÄÒ»¸öÖØÒª²å¼þ³ÌÐò¡£
µØÖ·£ºhttp://sourceforge.net/projects/clewn/files ......
#include <stdio.h>
#include <unistd.h>
int main() {
char link[100], path[100];
sprintf(link, "/proc/%d/exe", getpid());
readlink(link, path, sizeof(path));
printf("%s\n.", path);
return 0;
} ......