【问题标题】:Access files generated in the backend访问后端生成的文件
【发布时间】:2021-09-24 10:51:49
【问题描述】:

我是初学者。几天前我开始探索 Pythran 和 Transonic。我了解到 Pythran 从 Python 输入文件生成一个 C++ 文件。我想在后端读取那些 C++ 生成的文件。

你们中有人对访问后端生成的文件有任何想法吗?

我正在使用 Transonic 的支持实现 Pythran。

谢谢!

【问题讨论】:

    标签: c++ compiler-optimization pythran


    【解决方案1】:

    您是否尝试过使用 --help 选项运行 pythran?

    ...
    optional arguments:
      -h, --help           show this help message and exit
      -o OUTPUT_FILE       path to generated file. Honors %{ext}.
      -P                   only run the high-level optimizer, do not compile
      -E                   only run the translator, do not compile
    ...
    

    所以,答案是:使用 -E 选项

    pythran my_python_file.py -E
    

    【讨论】:

      猜你喜欢
      • 2020-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-16
      • 2019-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多