V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
drymonfidelia
V2EX  ›  Python

使用 Nuitka 默认参数打包出来的 exe 仍可以正常输出带路径、行号的错误堆栈,是否说明可以反编译?为什么? Nuitka 存储了怎样的对应关系,是不是像 il2cpp 的 global-metadata 一样

  •  
  •   drymonfidelia · 17 小时 9 分钟前 · 612 次点击
    听说这个工作原理像 Unity 的 il2cpp 一样。il2cpp 会把源代码的很多信息存在 global-metadata 用于实现 C#的高级特性。Python 是否也一样需要类似的东西来实现高级特性?
    3 条回复    2025-02-25 10:18:20 +08:00
    louiswong2099
        1
    louiswong2099  
       15 小时 39 分钟前
    Nuitka 在将 Python 脚本编译成二进制文件时,并没有完全去掉 Python 自身的一些属性。 只是将 Python 代码转换为 C 代码,再编译成机器码。
    Trim21
        2
    Trim21  
       14 小时 12 分钟前 via Android
    你可以试试用 cython 把 py 编译成 c ,然后看看生成的 c 代码。
    GeekGao
        3
    GeekGao  
       11 小时 4 分钟前
    如果你仔细看文档,你会发现付费就可以解决符号信息泄漏问题 https://nuitka.net/doc/commercial.html
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3105 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 13:23 · PVG 21:23 · LAX 05:23 · JFK 08:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.