| ÀÌÀü ÁÖÁ¦ º¸±â :: ´ÙÀ½ ÁÖÁ¦ º¸±â |
| ±Û¾´ÀÌ |
¸Þ½ÃÁö |
JongAm

°¡ÀÔ: 2003³â 7¿ù 19ÀÏ ¿Ã¸° ±Û: 977 À§Ä¡: Downtown Los Angeles, CA
|
¿Ã·ÁÁü: ¿ù 8¿ù 08, 2005 4:08 pm ÁÖÁ¦: C99 Standard¿¡¼ Ãß°¡µÈ °Í |
|
|
º¸Åë C++Àº ¾à 96³â ÀÌÈÄ¿¡ Ãß°¡µÈ Ç¥ÁØ »çÇ×À» ¸¹ÀÌ ¾²°í ÀÖ´Â ÇüÆíÀÔ´Ï´Ù. ¹°·Ð ±× Ãß°¡ »çÇ×ÀÌ ²À ÇÊ¿äÇѰ¡¿¡ ´ëÇÑ ÀǰßÀÌ ºÐºÐÇϱä ÇÏÁö¸¸ ¸»ÀÔ´Ï´Ù.
±×·±µ¥ C´Â ±×·¸Áö ¾ÊÁÒ. ¿¹ÀüÀÇ Ç¥ÁØÀ» ±×´ë·Î ¾²°í ÀÖ½À´Ï´Ù.
±×·±µ¥ ¿À´Ã Objective-C¸¦ º¸´Ù°¡ ÀÌ»óÇÑ Á¡À» ¹ß°ßÇØ¼ CÀÇ Ç¥ÁØÀ» »ìÆìº¸¾Ò´Âµ¥.. ÀÌ·± 99³âµµ¿¡ »õ·Î¿î Ç¥ÁØÀÌ Ã¤ÅõǾú´õ±º¿ä.
¸¹ÀÌµé ¾²Áö´Â ¾Ê°í ÀÖ°í, ȣȯ¼º ¶§¹®¿¡¶óµµ ÀÌ »õ·Î¿î Ç¥ÁØ»çÇ×À» ÇÇÇÏ´Â ÀÔÀåÀ̰í, GNU C¿¡¼µµ Ç¥ÁØÀÇ Çϳª·Î ¼³¸íÇϱ⠺¸´Ù´Â GNU CÀÇ extensionÀ̶ó´Â ½ÄÀ¸·Î ¼³¸íÇϰí ÀÖ½À´Ï´Ù.
¾Æ¹«·¡µµ C++¿¡ ºñÇØ¼ C´Â ¹Ù²ÙÁö ¸»ÀÚ ÂÊÀÇ ¹¬½ÃÀûÀÎ ÇൿÀÌ ´õ ¸¹Àº °Í °°½À´Ï´Ù.
¾Ïư.. ÀÌ·¸°Ô ¹Ù²ï C¶§¹®¿¡ Objective-C¿¡¼ Çã¿ëÇÏ´Â °ÍµéÀÌ ÀÖ½À´Ï´Ù.
C99
After the ANSI standardization process, the C language specification remained relatively static for some time, whereas C++ continued to evolve. (Normative Amendment 1 created a new version of the C language in 1995, but this version is rarely acknowledged.) However, the standard underwent revision in the late 1990s, leading to the publication of ISO 9899:1999 in 1999. This standard is commonly referred to as "C99". It was adopted as an ANSI standard in March 2000.
The new features in C99 include:
- inline functions
- variables can be declared anywhere (as in C++), rather than only after another declaration or the start of a compound statement
- several new data types, including long long int (to reduce the pain of the looming 32-bit to 64-bit transition), an explicit boolean data type, and a complex type representing complex numbers
- variable-length arrays
- support for one-line comments beginning with //, like in BCPL or C++, and which many C compilers have previously supported as an extension
- several new library functions, such as snprintf()
- several new header files, such as stdint.h
Interest in supporting the new C99 features appears to be mixed. Whereas GCC and several other compilers now support most of the new features of C99, the compilers maintained by Microsoft and Borland do not, and these two companies do not seem to be interested in adding such support.
À̿ܿ¡µµ º¹¼Ò¼ö Ç¥ÇöÀÌ °¡´ÉÇÑ °Íµµ ÀÖ½À´Ï´Ù.
±Ùµ¥ variable length array°¡ µÈ´Ù´Â °ÍÀº Ãæ°ÝÀ̳׿ä.
Áï
int n = 10;
float test[n];
ÀÌ°Ô µÈ´Ù´Â ¸»ÀÔ´Ï´Ù. run time½Ã¿¡....
mallocÀÇ »ó´ç¼ö¸¦ ¾ø¾Ù ¼ö ÀÖ°Ú½À´Ï´Ù¸¸, °ú¿¬ ÀÌ°Ô ¹«½¼ ÀǹÌÀÏÁö ¸ð¸£°Ú½À´Ï´Ù. ½¬¿î µ¿Àû ¸Þ¸ð¸® ºñ½º¹«·¹´Â µÇ°ÚÁö¸¸, CÀÇ ÀåÁ¡ÀÌ ºü¸£´ÙÀε¥.. ÀÌ·± °ÍÀ» ³Ö¾î ¹ö¸®´Ù´Ï... ¾îÂ÷ÇÇ malloc¾µ²¨, ´õ ½±°Ô ¾²ÀÚ¶ó´Â ÃëÁö·Î´Â ÀÌÇØ°¡ µË´Ï´Ù¸¸..
¾Æ¸¶ ±×·¡¼ÀÎÁö ±×´ÙÁö ÀÌ C99À» Àß ¹Þ¾ÆµéÀÌÁö ¾Ê´ÂÁöµµ ¸ð¸£°Ú½À´Ï´Ù.
¾Ïư.. Objective-C¿¡¼´Â ÀÌ·± °ÍÀ» ´Ù ¹Þ¾Æ µéÀ̰í ÀÖÀ¸´Ï, ¾Ë¾ÆµÎ¸é ÁÁ°ÚÁÒ. |
|
| À§·Î |
|
 |
han9kin

°¡ÀÔ: 2003³â 6¿ù 8ÀÏ ¿Ã¸° ±Û: 417 À§Ä¡: 134-703
|
¿Ã·ÁÁü: ¿ù 8¿ù 08, 2005 5:02 pm ÁÖÁ¦: Re: C99 Standard¿¡¼ Ãß°¡µÈ °Í |
|
|
| JongAm ¾¸: |
- variables can be declared anywhere (as in C++), rather than only after another declaration or the start of a compound statement
|
¾î´À³¯ °©ÀÚ±â ÀÌ°Ô µÇ´ø°ÍÀÌ C99ÀÇ ¿µÇâÀ̾ú±º¿ä. Àú´Â Obj-C++ÀÇ ¿µÇâÀÎ ÁÙ ¾Ë¾Ò³×¿ä.
°³ÀÎÀûÀ¸·Î´Â À̰Šº°·Î ÁÁÀº °Å¶ó°í´Â »ý°¢ÇÏÁö ¾Ê°í ÀÖ½À´Ï´Ù. |
|
| À§·Î |
|
 |
taewon

°¡ÀÔ: 2003³â 8¿ù 4ÀÏ ¿Ã¸° ±Û: 63 À§Ä¡: Mannheim, Germany
|
¿Ã·ÁÁü: ¿ù 8¿ù 08, 2005 6:25 pm ÁÖÁ¦: Re: C99 Standard¿¡¼ Ãß°¡µÈ °Í |
|
|
| han9kin ¾¸: | | °³ÀÎÀûÀ¸·Î´Â À̰Šº°·Î ÁÁÀº °Å¶ó°í´Â »ý°¢ÇÏÁö ¾Ê°í ÀÖ½À´Ï´Ù. |
Àúµµ ±×·¸°Ô´Â »ý°¢Çϴµ¥ ÇÏ´Ùº¸¸é ÆíÇÏ´õ±º¿ä.... ÇÏÁö¸¸ ³ªÁß¿¡ º¸¸é ¹¹°¡ ¹ºÁö Çϳªµµ ¸ð¸£ÁÒ... _________________ Tae. =) |
|
| À§·Î |
|
 |
JongAm

°¡ÀÔ: 2003³â 7¿ù 19ÀÏ ¿Ã¸° ±Û: 977 À§Ä¡: Downtown Los Angeles, CA
|
¿Ã·ÁÁü: È 8¿ù 09, 2005 1:41 am ÁÖÁ¦: |
|
|
±×°Ô.. ¾ó¸¥ ¾ó¸¥ Â¥¼ Å×½ºÆ®ÇØ º¼ ¶§´Â ÁÁÀºµ¥, ´Ù Â¥°í ³ª¼ ¹º°¡ Á¤¸®¸¦ ÇÒ¶§´Â ÁÁÁö ¾ÊÁÒ.
±×·¡¼ Àü ´ë½Å¿¡ ¿¡µðÅͰ¡ ÇÑ View¸¦ µÑ·Î ³ª´ ¼ö ÀÖ´Â °ÍÀ» ÁÁ¾ÆÇÕ´Ï´Ù
À§ÀÇ view¿¡´Â ¼±¾ðºÎ³ª Ŭ·¡½º¸¦ º¼ ¼öÀÖ°Ô ÇØ ³õ°í, ¾Æ·¡ view´Â ½ÇÁö·Î ÄÚµùÇϰí ÀÖ´Â ºÎºÐÀ» º¸°í..  |
|
| À§·Î |
|
 |
chunsj
°¡ÀÔ: 2003³â 9¿ù 2ÀÏ ¿Ã¸° ±Û: 107
|
¿Ã·ÁÁü: È 8¿ù 09, 2005 10:03 am ÁÖÁ¦: Re: C99 Standard¿¡¼ Ãß°¡µÈ °Í |
|
|
| JongAm ¾¸: | À̿ܿ¡µµ º¹¼Ò¼ö Ç¥ÇöÀÌ °¡´ÉÇÑ °Íµµ ÀÖ½À´Ï´Ù.
±Ùµ¥ variable length array°¡ µÈ´Ù´Â °ÍÀº Ãæ°ÝÀ̳׿ä.
Áï
int n = 10;
float test[n];
ÀÌ°Ô µÈ´Ù´Â ¸»ÀÔ´Ï´Ù. run time½Ã¿¡....
mallocÀÇ »ó´ç¼ö¸¦ ¾ø¾Ù ¼ö ÀÖ°Ú½À´Ï´Ù¸¸, °ú¿¬ ÀÌ°Ô ¹«½¼ ÀǹÌÀÏÁö ¸ð¸£°Ú½À´Ï´Ù. ½¬¿î µ¿Àû ¸Þ¸ð¸® ºñ½º¹«·¹´Â µÇ°ÚÁö¸¸, CÀÇ ÀåÁ¡ÀÌ ºü¸£´ÙÀε¥.. ÀÌ·± °ÍÀ» ³Ö¾î ¹ö¸®´Ù´Ï... ¾îÂ÷ÇÇ malloc¾µ²¨, ´õ ½±°Ô ¾²ÀÚ¶ó´Â ÃëÁö·Î´Â ÀÌÇØ°¡ µË´Ï´Ù¸¸..
¾Æ¸¶ ±×·¡¼ÀÎÁö ±×´ÙÁö ÀÌ C99À» Àß ¹Þ¾ÆµéÀÌÁö ¾Ê´ÂÁöµµ ¸ð¸£°Ú½À´Ï´Ù.
¾Ïư.. Objective-C¿¡¼´Â ÀÌ·± °ÍÀ» ´Ù ¹Þ¾Æ µéÀ̰í ÀÖÀ¸´Ï, ¾Ë¾ÆµÎ¸é ÁÁ°ÚÁÒ. |
ÀÏ´Ü heap/stack allocationÀÇ Â÷À̵µ ÀÖÀ¸´Ï±î mallocÀ» ÅëÇØ¼ ÇÒ´çÀ» Çϰí Á¢±ÙÇÏ´Â °Í¿¡ ºñÇØ¼ ºü¸£°ÚÁÒ. ¾Æ¸¶ gcc¿¡´Â alloca¶ó°í ÇØ¼ ÀÌÀüºÎÅÍ ºñÇ¥ÁØÀ¸·Î Áö¿øÀ» Çϰí ÀÖ¾ú´ø °ÍÀ¸·Î ¾Ë°í ÀÖ½À´Ï´Ù.
±×¸®°í ¾Æ¹« À§Ä¡¿¡¼³ª ¼±¾ðÀÌ °¡´ÉÇÏ´Ù´Â °ÍÀº ƯÁ¤ ºí·°¿¡¼¸¸ »ç¿ëµÇ´Â º¯¼öµé·Î ÀÎÇØ¼ Áß¿äÇÑ º¯¼ö°¡ ¹¯Çô¹ö¸®´Â Çö»óÀ» Á» ÁÙ¿©ÁÙ ¼ö ÀÖÁö ¾ÊÀ»±î¿ä? |
|
| À§·Î |
|
 |
JongAm

°¡ÀÔ: 2003³â 7¿ù 19ÀÏ ¿Ã¸° ±Û: 977 À§Ä¡: Downtown Los Angeles, CA
|
¿Ã·ÁÁü: È 8¿ù 09, 2005 12:19 pm ÁÖÁ¦: Re: C99 Standard¿¡¼ Ãß°¡µÈ °Í |
|
|
¸»¾¸¸¶µû³ª stackÀ» ÀÌ¿ëÇÑ´Ù¸é ´õ ºü¸£±ä ÇÒ°Ì´Ï´Ù. mallocÀ» ÀÌ¿ëÇÏ´Â °Íº¸´Ù..
±×·±µ¥.. ¾ð¾îÀÇ feature¸¦ ´Ã¸®¸é.. ´õ±º´Ù³ª.. ó¸®ÇÏ´Â °ÍÀÌ Á» runtime½Ã¿¡ °áÁ¤ÀÌ µÇ¾îÁÖ¾î¾ß Çϴϱî.. ±×·± ¸é¿¡¼ ´À·ÁÁöÁö ¾ÊÀ»±î ½Í½À´Ï´Ù.
stackÀ» ½á¼ »¡¶óÁö´Â °Í°ú ±×·± ±¸Á¶·Î ÀÎÇØ¼ ´À·ÁÁö´Â°ÍÀÌ »ó¼âµÇ¸é ¾î¶³±î ¸ð¸£°Ú½À´Ï´Ù. |
|
| À§·Î |
|
 |
[..']

°¡ÀÔ: 2003³â 7¿ù 10ÀÏ ¿Ã¸° ±Û: 166 À§Ä¡: Vancouver, BC CANADA
|
¿Ã·ÁÁü: ¼ö 8¿ù 10, 2005 3:08 am ÁÖÁ¦: |
|
|
·±Å¸Àӽÿ¡ ¹è¿ Å©±â¸¦ ¸¾´ë·Î ÁÙ¿´´Ù ´Ã¿´´Ù ÇÏ´Â°Ô ¾Æ´Ï¶ó¸é
1. ¼Ò½º¿¡ ¹è¿ Å©±â°¡ »ó¼ö·Î ÁöÁ¤µÇ¸é ¿¾³¯Ã³·³ ±×³É ½ºÅÿ¡´Ù ³Ö°í
2. ¼Ò½º¿¡ ¹è¿ Å©±â°¡ º¯¼ö·Î ÁöÁ¤µÇ¸é Èü¿¡´Ù ¸¸µé°í
Çϸé ÄÄÆÄÀÏ·¯¸¦ ¼öÁ¤ÇÏ´Â °ÍÀÌ ¹®Á¦ÀÌÁö »ý¼ºµÈ ÄÚµå´Â º° Â÷ÀÌ ¾øÁö ¾Ê³ª¿ä?
malloc+Æ÷ÀÎÅÍ ¿¬»êÀ¸·Î ÇÒÀÏÀ» ±ò²ûÇÑ ½ÅÅØ½º·Î ó¸®ÇÒ ¼ö ÀÖÀ¸´Ï Àü ÁÁ¾Æº¸À̴µ¥¿ä.
À̸¥¸¶ 'syntactic sugar'·Î »ý°¢µË´Ï´Ù¸¸. _________________ [..'] Let them talk. Just leave me alone while I'm coding. |
|
| À§·Î |
|
 |
JongAm

°¡ÀÔ: 2003³â 7¿ù 19ÀÏ ¿Ã¸° ±Û: 977 À§Ä¡: Downtown Los Angeles, CA
|
¿Ã·ÁÁü: ¼ö 8¿ù 10, 2005 3:39 am ÁÖÁ¦: |
|
|
| [..'] ¾¸: | ·±Å¸Àӽÿ¡ ¹è¿ Å©±â¸¦ ¸¾´ë·Î ÁÙ¿´´Ù ´Ã¿´´Ù ÇÏ´Â°Ô ¾Æ´Ï¶ó¸é
1. ¼Ò½º¿¡ ¹è¿ Å©±â°¡ »ó¼ö·Î ÁöÁ¤µÇ¸é ¿¾³¯Ã³·³ ±×³É ½ºÅÿ¡´Ù ³Ö°í
2. ¼Ò½º¿¡ ¹è¿ Å©±â°¡ º¯¼ö·Î ÁöÁ¤µÇ¸é Èü¿¡´Ù ¸¸µé°í
|
Á¦°¡ º¸±â¿¡µµ ±×·¸°Ô ¸¸µé¾úÀ»°Å °°¾Ö¿ä.
| [..'] ¾¸: |
malloc+Æ÷ÀÎÅÍ ¿¬»êÀ¸·Î ÇÒÀÏÀ» ±ò²ûÇÑ ½ÅÅØ½º·Î ó¸®ÇÒ ¼ö ÀÖÀ¸´Ï Àü ÁÁ¾Æº¸À̴µ¥¿ä.
À̸¥¸¶ 'syntactic sugar'·Î »ý°¢µË´Ï´Ù¸¸. |
ÀúµÎ¿ä.  |
|
| À§·Î |
|
 |
chunsj
°¡ÀÔ: 2003³â 9¿ù 2ÀÏ ¿Ã¸° ±Û: 107
|
¿Ã·ÁÁü: ¼ö 8¿ù 10, 2005 10:25 am ÁÖÁ¦: |
|
|
| [..'] ¾¸: | ·±Å¸Àӽÿ¡ ¹è¿ Å©±â¸¦ ¸¾´ë·Î ÁÙ¿´´Ù ´Ã¿´´Ù ÇÏ´Â°Ô ¾Æ´Ï¶ó¸é
1. ¼Ò½º¿¡ ¹è¿ Å©±â°¡ »ó¼ö·Î ÁöÁ¤µÇ¸é ¿¾³¯Ã³·³ ±×³É ½ºÅÿ¡´Ù ³Ö°í
2. ¼Ò½º¿¡ ¹è¿ Å©±â°¡ º¯¼ö·Î ÁöÁ¤µÇ¸é Èü¿¡´Ù ¸¸µé°í
Çϸé ÄÄÆÄÀÏ·¯¸¦ ¼öÁ¤ÇÏ´Â °ÍÀÌ ¹®Á¦ÀÌÁö »ý¼ºµÈ ÄÚµå´Â º° Â÷ÀÌ ¾øÁö ¾Ê³ª¿ä?
malloc+Æ÷ÀÎÅÍ ¿¬»êÀ¸·Î ÇÒÀÏÀ» ±ò²ûÇÑ ½ÅÅØ½º·Î ó¸®ÇÒ ¼ö ÀÖÀ¸´Ï Àü ÁÁ¾Æº¸À̴µ¥¿ä.
À̸¥¸¶ 'syntactic sugar'·Î »ý°¢µË´Ï´Ù¸¸. |
ÄÄÆÄÀÏ·¯¸¶´Ù ´Ù¸¦ ¼ö´Â ÀÖ°ÚÁö¸¸, ÀÌ·± ½ÄÀ¸·Î ¸¸µç´Ù¸é ±× ÄÄÆÄÀÏ·¯´Â Á» ¹®Á¦°¡ ÀÖ´Ù°í º¸À̳׿ä. Àû¾îµµ GCCÀÇ °æ¿ì¿¡´Â ±×·¸°Ô ÇÏÁö ¾Ê½À´Ï´Ù. ÅëÀûÀ¸·Î ½ºÅÿ¡ ÇÒ´çÇÏ´Â °ÍÀÌ ºÒ°¡´ÉÇÑ ¾ÆÅ°ÅØÃİ¡ ÀÖ´Ù¸é ¸ð¸£°ÚÁö¸¸ ¸»ÀÔ´Ï´Ù. |
|
| À§·Î |
|
 |
|