Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

unix cѧϰָÄÏ (Êé¼®,ѧϰ·½·¨µÈ)

ÒýÑÔ
¾¡¹Ü C ÓïÑÔÎÊÊÀÒѽü 30 Ä꣬µ«ËüµÄ÷ÈÁ¦ÈÔδ¼õÍË¡£C ÓïÑÔ¼ÌÐøÎüÒý×ÅÖÚ¶àµÄ¿ª·¢Õߣ¬ËûÃÇΪÁ˱àд¡¢ÒÆÖ²»òά»¤Ó¦ÓóÌÐò¶ø±ØÐëѧϰм¼ÄÜ¡£
±¾ÎÄÊÇΪÁËÂú×ã¶ÔCÓïÑÔ³õѧÕß»òÏëÌá¸ß×ÔÉíCÓïÑÔÐÞΪµÄ¿ª·¢ÈËÔ±µÄÐèÒª¶øдµÄ¡£Ï£Íû¶ÔÄúµÄѧϰºÍ¹¤×÷ÓÐËù°ïÖú¡£ÄúÒ²Ðí²»ÔÞͬÆäÖеÄijЩ·½·¨£¬µ«ÎÒÃÇÏ£ÍûÄú»áϲ»¶ÆäÖеÄһЩ¡£
±¾ÎIJ»½éÉÜ×÷Ϊһ¸ö³ÌÐòÔ±Ó¦ÕÆÎÕµÃÓïÑÔϸ½Ú£¬¶øÊÇÓë³õѧÕß·ÖÏí×Ô¼ºµÄUNIX ÏÂCÓïÑÔ±à³Ìѧϰ¾­Ñ飻Ҳ²»ËµÃ÷Ò»¸öºÏ¸ñµÄ±à³ÌÈËÔ±Ó¦¸ÃÕÆÎյļÆËã»ú֪ʶ£¬±ÈÈ磺²Ù×÷ϵͳ¡¢Êý¾Ý½á¹¹ÓëËã·¨¡¢Êý¾Ý¿âµÈµÈ¡£
²»¹ÜÄú³öÓÚʲôĿµÄ£¬Ï£ÍûÄúÔĶÁÍê±¾ÎĺóÄÜÁôÏÂÄúµÄÅúÆÀ»ò½¨Òé¡£ÄúµÄÖпϵÄÅúÆÀ»á³ÉΪ×÷ÕßÇ°½øµÄ¶¯Á¦¡£
¹¤¾ßƪ
“¹«ÓûÉÆÆäÊ£¬±ØÏÈÀûÆäÆ÷”¡£±à³ÌÊÇÒ»ÃÅʵ¼ùÐÔºÜÇ¿µÄ¹¤×÷£¬ÔÚÄãÒÔºóµÄѧϰ»ò¹¤×÷ÖУ¬Ä㽫³£³£»áÓëÒÔϹ¤¾ß´ò½»µÀ, ÏÂÃæÁгöѧϰCÓïÑÔ±à³Ì³£³£Óõ½µÄÈí¼þºÍ¹¤¾ß¡£
 
(Ò»)²Ù×÷ϵͳ
ÔÚUNIX»òLinuxϵͳÖÐѧϰCºÜ·½±ã£¬ËùÒÔÔÚ¿ªÊ¼ÄúµÄѧϰÂóÌÇ°ÇëÏÈÑ¡ÔñÒ»¸öUNIX»òLinux²Ù×÷ϵͳ¡£
Ä¿Ç°¿É¹©¸öÈËÃâ·ÑʹÓõÄUNIX»òLinuxϵͳÓÐFreeBSD¡¢RedHat Linux¡¢SUSE LinuxµÈ£¬¶øÇÒÔÚ°²×°°üÖл¹ÌṩºÜ¶àʵÓõŤ¾ß£¬È磺gcc, makeµÈ¡£
Èç¹ûÄúһֱʹÓÃWindows£¬Éí±ßÓÖûÓжàÓàµÄ»úÆ÷°²×°UNIX£¬Ôò¿ÉÒÔʹÓÃVMware£¬Í¨¹ýVMware°²×°ÐéÄâϵͳ¡£
 
(¶þ)±àÒ빤¾ß
Ä¿Ç°¾ø´ó¶àÊýUnix»òLnuxϵͳ¶¼ÌṩCC»òGCC±àÒëÆ÷£¬×î¼òµ¥µÄccÃüÁî¸ñʽÈçÏ£º
cc -o hello hello.c
ÔÚunix shell»·¾³ÖÐÇÃÈëÉÏÃæµÄ´úÂë»á½«hello.c³ÌÐò±àÒë³É¿ÉÖ´ÐÐÎļþhello¡£
 
make ¹¤¾ßÈç GNU make¡¢System V make ºÍ Berkeley make ÊÇÓÃÀ´×éÖ¯Ó¦ÓóÌÐò±àÒë¹ý³ÌµÄ»ù±¾¹¤¾ß£¬µ«ÊÇÿ¸ö make ¹¤¾ßÖ®¼äÓÖÓÐËù²»Í¬¡£
    ´ó²¿·ÖUNIXºÍLinux³ÌÐò¶¼ÊÇͨ¹ýÔËÐÐmakeÀ´±àÒëµÄ¡£make¹¤¾ß»á¶ÁÈ¡Ò»¸ö°üº¬Ö¸ÁîµÄÎļþ£¨Õâ¸öÎļþµÄÃû×Öͨ³£¶¼ÊÇ makefile »ò Makefile£¬²»¹ýºóÎÄÖÐÎÒÃÇͳһ³Æ֮Ϊ “makefile”£©£¬²¢Ö´Ðи÷ÖÖ²Ù×÷À´±àÒë³ÌÐò
   
 
(Èý)µ÷ÊÔ¹¤¾ß
×î¼òµ¥µÄµ÷ÊÔ¹¤¾ß£ºÎªÄãµÄ³ÌÐòÌí¼Ó´òÓ¡Óï¾ä
ÔÚÄã¶Ô³ÌÐòµÄÔËÐлúÖÆÓÐÁËÒ»¶¨µÄÁ˽âºó£¬Äã¿ÉÒÔʵÓÃһЩ¹¤¾ß°ïÖúÄã½øÐе÷ÊÔ£¬µ±È»ÄãµÃѧϰһÏÂÕâЩ¹¤¾ßµÃʹÓã¬È磺dbx£¬gdbµÈ¡£
    »¹ÓÐһЩÄڴ湤¾ß¿ÉÒÔ°ïÄã²éÕÒÄÚ´æй©»ò»º³åÇøÒç³öµÈһЩÎÊÌ⣬È磺memwatch,yamdµÈ
 
(ËÄ)ÆäËû¹¤¾ß
1£® vi»òvim
UnixÏÂÎı¾±à¼­Æ÷¡


Ïà¹ØÎĵµ£º

Ò»¸öC²¡¶¾ !

//Á¬½ÓÍ·Îļþ
#include <io.h>
#include <dir.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//¿½±´ÎļþÄ£¿é
int copyfile (char *infile, char *outfile)
{
    FILE *in,*out; //¶¨ÒåÎļþÖ¸Õë
    in = fopen(infile,"r"); //´ ......

¶Á¡¶CºÍÖ¸Õë¡·±Ê¼ÇÕªÒª¡¾6¡¿

2010-04-09
µÚÊ®ÎåÕ    ÊäÈë/Êä³öº¯Êý
1¡¢´íÎ󱨸æ
perrorº¯Êý     void perror( char const *message);
2¡¢ÖÕÖ¹Ö´ÐÐ
void exit( int status );    Ô­ÐͶ¨ÒåÓÚstdlib.h
ÆäÖÐstatus²ÎÊý·µ»Ø¸ø²Ù×÷ϵͳ£¬ÓÃÓÚÌáʾ³ÌÐòÊÇ·ñÕý³£Íê³É£¬Õâ¸öÖµºÍmainº¯Êý·µ»ØµÄÕûÐÍ״̬ ......

C×Ö·û´®´¦Àíº¯ÊýµÄʵÏÖ

C×Ö·û´®´¦Àíº¯ÊýµÄʵÏÖ£¨Linux£©
#include <stddef.h>
char * ___strtok = NULL;
char * strcpy(char * dest,const char *src)
{
char *tmp = dest;
while ((*dest++ = *src++) != '\0')
/* nothing */;
return tmp;
}
char * strncpy(char * dest,const char *src,size_t count)
{
char *tmp = d ......

ʹÓà gperf ʵÏÖ¸ßЧµÄ C/C++ ÃüÁîÐд¦Àí


ʹÓà gperf ʵÏÖ¸ßЧµÄ C/C++ ÃüÁîÐд¦Àí
GNU ÍêÃÀ£¨gperf£©É¢Áк¯ÊýÉú³ÉÆ÷¼ò»¯¸´ÔÓµÄÊäÈë×Ö·û´®
ÎĵµÑ¡Ïî
¼¶±ð£º Öм¶
Arpan Sen
(arpan@syncad.com
), ¼¼ÊõÖ÷¹Ü, Synapti Computer Aided Design Pvt Ltd
2007 Äê 9 ÔÂ 10 ÈÕ
GNU µÄ gperf ¹¤¾ßÊÇÒ»ÖÖ “ÍêÃÀµÄ” É¢Áк¯Êý£¬¿ÉÒÔΪÓû§ÌṩµÄÒ»×éÌØ ......

ARMÖÐCºÍ»ã±à»ìºÏ±à³Ì¼°Ê¾Àý

1£® ÔÚCÓïÑÔÖÐÄÚǶ»ã±à
ÔÚCÖÐÄÚǶµÄ»ã±àÖ¸Áî°üº¬´ó²¿·ÖµÄARMºÍThumbÖ¸Á²»¹ýÆäʹÓÃÓë»ã±àÎļþÖеÄÖ¸ÁîÓÐЩ²»Í¬£¬´æÔÚһЩÏÞÖÆ£¬Ö÷ÒªÓÐÏÂÃ漸¸ö·½Ã棺
 
a. ²»ÄÜÖ±½ÓÏòPC¼Ä´æÆ÷¸³Öµ£¬³ÌÐòÌøתҪʹÓÃB»òÕßBLÖ¸Áî
b. ÔÚʹÓÃÎïÀí¼Ä´æÆ÷ʱ£¬²»ÒªÊ¹ÓùýÓÚ¸´ÔÓµÄC±í´ïʽ£¬±ÜÃâÎïÀí¼Ä´æÆ÷³åÍ»
c. R12ºÍR13¿ÉÄܱ»±àÒë ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ