| Ç÷§Æû C ÆÄÀÏÀ» ÄÄÆÄÀÏÇÏ°í ½ÇÇàÇÏ´Â Å©·Î½º Ç÷§Æû ¹æ½Ä |
Áö±Ý ´Ù¿î·Îµå |
Ç÷§Æû ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Other/Proprietary Li...
- °Ô½ÃÀÚ À̸§:
- Maciej Fijalkowski
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://github.com/fijal/
Ç÷§Æû ű×
Ç÷§Æû ¼³¸í
Platformer´Â Python¿¡¼ C ÄÄÆÄÀÏ·¯¸¦ È£ÃâÇÏ´Â °£´ÜÇÏ°í °·ÂÇÑ ¹æ¹ýÀÔ´Ï´Ù. ÀÌ°ÍÀº Pypy ÇÁ·ÎÁ§Æ®ÀÇ ÀϺΰ¡µÇ¾î ¸Ö¸® ¿Å°ÜÁ³½À´Ï´Ù. ÀÌ ¿¹Á¦´Â °æ·Î Á¶ÀÛÀ» À§ÇØ py.path.local ÀνºÅϽº¸¦ »ç¿ëÇÕ´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº PyLib ¹®¼¸¦ ÂüÁ¶ÇϽʽÿÀ. È®Àå±â °¡Á® ¿À±â Ç÷§Æû, ExternalCompilationInfo, UdiReci = ExternalCompilationInfo (= c_file = udir.join ( 'x.c') c_file.write ( 'int main () {printf ( "% f \ n", pow (2.0, 3.0)); 0;}') exe_file = platform.Compile ([C_File) , ECI) res = platform.execute (exe_file) assert res.returncode == 0Assert res.out.startswith ( '8.0') Á¦Ç°ÀÇ È¨ÆäÀÌÁö
Ç÷§Æû °ü·Ã ¼ÒÇÁÆ®¿þ¾î