首页 > 编程知识 正文

python生成注册码,malloc函数编译机器码

时间:2023-05-05 22:33:33 阅读:23580 作者:1425

howfeasiblewoulditbetocompilepython (possiblyviaanintermediatecrepresentation ) into machine代码?

presumablyitwouldneedtolinktoapythonruntimelibrary,andanypartsofthepythonstandardlibrarywhichwerepythonthemselveswouldneedto

Also,youwouldneedtobundlethepythoninterpreterifyouwantedtododynamicevaluationofexpressions,butperhapsasubsetofpythonthathatddididions

woulditprovideanyspeedand/ormemoryusageadvantages? presumablythestartuptimeofthepythoninterpreterwouldbeeliminated (althoughsharedlibrarieswouldstillneeedloadingatstartup )。

解决方案

Try ShedSkin Python-to-C compiler, butitisfarfromperfect.alsothereispsyco-pythonjitifonlyspeedupisneeded.butimhothisnotworththeeffort.for speed-critic

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。