| gcc :: tranyorunit. GCC :: ContonalUnitÀº GCC -FDUMP-Translation-UnitÀÇ Ãâ·ÂÀ» ±¸¹® ºÐ¼® ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
gcc :: tranyorunit. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Ashley Winters
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~awin/Qt-0.03/QApplication/QApplication.pm
gcc :: tranyorunit. ű×
gcc :: tranyorunit. ¼³¸í
GCC :: ContonalUnitÀº GCC -Fdump-translation-unitÀÇ Ãâ·ÂÀ» ±¸¹® ºÐ¼® ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. GCC :: ContonalUnitÀº gcc -fdump-translation-unitÀÇ Ãâ·ÂÀ» ±¸¹® ºÐ¼® ÇÒ ¼öÀÖ´Â perl ¸ðµâÀÔ´Ï´Ù. gcc :: conalityUnitÀ» »ç¿ëÇϽʽÿÀ. # echo '#include'> stdio.c # gcc -fdump-translation-unit -c stdio.c $ node = gcc :: conalityUnit :: parser-> parsefile ( 'stdio.c.tu') -> root; # ($ node) {($ node-> isa ( 'gcc : node :: function_decl') ¶Ç´Â $ node-> isa ( 'gcc : node :: var_decl'ÀÎ °æ¿ì) ¶Ç´Â $ node-> isa ( 'gcc :: node :: var_decl'))¸¦ ¸ðµÎ ³ª¿ÇϽʽÿÀ. PRINTF "% s°¡ % SN¿¡¼ ¼±¾ð", $ node-> name-> ½Äº°ÀÚ, $ node-> ¼Ò½º; }} {$ Node = $ Node-> üÀÎÀ» °è¼ÓÇϽʽÿÀ. } gcc¿¡¼ -fdump-translation-unit ÆÄÀÏ¿¡¼ Àб⠸ðµâ°ú gcc.once ³»¿¡¼ »ç¿ëÇÒ ¼öÀÖ´Â µ¥ÀÌÅÍÀÇ ¾×¼¼½º ¸Þ¼Òµå¿¡¼ ±¸¹® ºÐ¼®±â¸¦ »ç¿ëÇÏ¿© ÆÄÀÏ¿¡¼ ÀÐÀº µ¥ÀÌÅÍ¿¡ ´ëÇÑ ¾×¼¼½º ¹æ¹ýÀ» »ç¿ëÇÏ¿© ¸Þ¼Òµå¸¦ »ç¿ëÇÏ¿© ±¸¹® ºÐ¼® Æ®¸®ÀÇ Àüü ±¸Á¶¸¦ Ž»ö ÇÒ ¼ö ÀÖ½À´Ï´Ù gcc :: node :: * ¸ðµâ¿¡ Á¤ÀǵǾî ÀÖ½À´Ï´Ù. Á¤º¸¸¦ ãÀ¸½Ê½Ã¿À. °¢ ³ëµå´Â ±× À̸§À¸·Î GCC : ³ëµå :: * Ŭ·¡½º·Î Ãູ¹Þ½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
gcc :: tranyorunit. °ü·Ã ¼ÒÇÁÆ®¿þ¾î