gpt4 book ai didi

python - 将 Psyco 移植到 64 位时可能存在哪些缺陷?

转载 作者:太空狗 更新时间:2023-10-29 18:29:15 26 4
gpt4 key购买 nike

Psyco 文档说:

Just for reference, Psyco does not work on any 64-bit systems at all. This fact is worth being noted again, now that the latest Mac OS/X 10.6 "Snow Leopart" comes with a default Python that is 64-bit on 64-bit machines. The only way to use Psyco on OS/X 10.6 is by recompiling a custom Python in 32-bit mode.

一般来说,将程序从 32 位移植到 64 位只有在代码假定指针类型有一定大小和其他类似的小问题时才是真正的问题。考虑到 Psyco 不是一大堆代码(~32K 行 C + ~8K 行 Python),它有多难?有没有人试过这个并撞墙?我还没有真正有机会仔细查看 Psyco 源代码,所以如果我知道我是否在浪费我的时间来研究这个,我真的很感激......

最佳答案

Christian Tismer,其中一位 Psyco 开发人员似乎也不同意“它有多难”- 假设(引自 here):

Needs to come to x86-64? Why that! Seriously, I would love to do that, but this would be much harder than anybody would expect. Due to the way psyco is written, it would be really half a rewrite to releave it from its 32-bitterness. The 32 bit assumption is implicitly everywhere. It would be straight forward, if the memory model was all 64 bit. But no intel platform is that simple. so long, and thanks for all the fish -- chris

hum. It would cost at least 3 or 4 months of full-time work do do that, if not more. I doubt that I can get sponsorship for that.

如果您想要更多详细信息(可能需要 Psyco 的坚实内部知识),我想您总是可以尝试在其中一个 psyco 邮件列表上提问...

关于python - 将 Psyco 移植到 64 位时可能存在哪些缺陷?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2374233/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com