| ÀζóÀÎ :: ±¸Á¶¹° ÀζóÀÎ :: ±¸Á¶Ã¼´Â PERL¿¡¼ Á÷Á¢ C ±¸Á¶¸¦ Á¶ÀÛÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
ÀζóÀÎ :: ±¸Á¶¹° ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Neil Watkiss
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~neilw/Inline-ASM-0.03/ASM.pod
ÀζóÀÎ :: ±¸Á¶¹° ű×
ÀζóÀÎ :: ±¸Á¶¹° ¼³¸í
ÀζóÀÎ :: struct´Â Perl¿¡¼ Á÷Á¢ C ±¸Á¶¸¦ Á¶ÀÛÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ÀζóÀÎ :: ±¸Á¶Ã¼´Â Perl.Synopsis¿¡¼ Á÷Á¢ C ±¸Á¶¸¦ Á¶ÀÛÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ÀζóÀÎ C => config => structs => ; MY $ OBJ = ÀζóÀÎ :: Struct :: Foo-> New; $ obj-> num (10); $ obj-> str ( "hello"); myfunc ($ obj); __end__ __c__ struct foo {int num; char * str; }; myfunc (foo * f) {printf ( "myFunc : num = % i, str = '% s'n", f-> num, f-> str); }ÀÌ ¿ÏÀüÇÑ ÇÁ·Î±×·¥ Àμâ : myFunc : num = 10, str = 'hello'inline :: struct´Â »õ·Î¿î ¾ð¾î°¡ ¾Æ´Õ´Ï´Ù. INLION :: C°¡ »ç¿ëÇϵµ·Ï ¼³°èµÈ ¾ð¾î È®ÀåÀÔ´Ï´Ù. ±¸Á¶Ã¼ Á¤ÀǸ¦ ±¸¹® ºÐ¼®ÇÏ°í °¢ ±¸Á¶Ã¼¸¦ Perl Ŭ·¡½º¿¡ ¹ÙÀεåÇÏ´Â Typemaps ¹× XS Äڵ带 ¸¸µì´Ï´Ù. ÀÌ ÄÚµå´Â INLINE :: C·Î Àü´ÞµË´Ï´Ù. Á¤»óÀûÀÎ ¹æ¹ýÀ¸·Î ÄÄÆÄÀÏÇÕ´Ï´Ù. Âü°í : ÀζóÀÎ :: ±¸Á¶¹° C ½ºÅ¸ÀÏ ±¸Á¶Ã¼ ¸¸ ±¸¹® ºÐ¼®ÇÕ´Ï´Ù. ¹üÀ§, »ý¼ºÀÚ ¶Ç´Â ¸Þ¼Òµå¿Í °°Àº ±¸Á¶Ã¼¿¡ ´ëÇÑ C ++ È®Àå¿¡ ´ëÇØ ¾ËÁö ¸øÇÕ´Ï´Ù. ÀÌ·¯ÇÑ ±â´ÉÀ» ¿øÇÑ´Ù¸é ÀζóÀÎ :: CPP¸¦ »ç¿ëÇÏ¿© ±¸Á¶Ã¼¸¦ ±¸¹® ºÐ¼®ÇؾßÇÕ´Ï´Ù. ¡¤ Perl ¿ä±¸ »çÇ× : ¡¤ Perl.
ÀζóÀÎ :: ±¸Á¶¹° °ü·Ã ¼ÒÇÁÆ®¿þ¾î