上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: 使用面向模块接口开发,链接跨平台的 Python 或 C 包,统一加载到 Python3 环境当中。 目前支持的 Python3 环境,该模块包描述了如何构建、链接、测试、发布的方法。 PC x86_64 的 Pyhon3 环境 Sipeed v831 的 Python3 交叉编译环境 Python 阅读全文
posted @ 2021-01-09 18:25 Juwan 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: 伴随着的问题还有 no attribute 'pep425tags' 找不到这个接口。 2021 年了,这些接口在代码里都改得面目全非了,看 Python-3.8.5/install-pip/usr/lib/python3.8/site-packages/pip/_internal/models/t 阅读全文
posted @ 2021-01-08 10:03 Juwan 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 如果不注意使用就会内存泄露,不会被 GC 回收。 Py_INCREF(first); // 标记 first 指针 Py_XDECREF(first); // 移除 first 指针 自行注意吧。 推荐看这篇:使用 C 写 Python 模块时内存回收管理,Py_INCREF() 和 Py_DECR 阅读全文
posted @ 2021-01-04 11:42 Juwan 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 让低端芯片也可以 Remote Python Call ,看仓库 https://github.com/junhuanchen/rpyc_ikernel 的说明。 注意 IPython 的内存占用比想象的更多,光是启动就需要 38M 了,所以才需要 rpyc 的内核,只需要 11M 即可启动。 给【 阅读全文
posted @ 2020-12-23 13:49 Juwan 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 启用 swap 功能 在 make menuconfig 里面选中 swap 相关的命令。 │ Symbol: BUSYBOX_CONFIG_FEATURE_SWAPON_DISCARD [=y] │ │ Type : boolean │ │ Prompt: Support discard opti 阅读全文
posted @ 2020-12-23 13:34 Juwan 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 在 docker 编译 arm 应用 正常情况下 docker 是不能启动与宿主机不同架构的服务,此时要启动 arm 架构的环境,就需要提供 qemu 虚拟机的服务支持。 关于这个 qemu 能否使用可以自行查阅。 这将极大的方便我们在 x86 机器直接进行编译和测试 arm 的程序,测试完成后再将 阅读全文
posted @ 2020-12-23 11:24 Juwan 阅读(2114) 评论(0) 推荐(0) 编辑
摘要: 初期启动硬件资源,主要有如下内容。 https://github.com/rycus86/docker-arm64v8-debian-qemu https://stackoverflow.com/questions/58298774/standard-init-linux-go211-exec-us 阅读全文
posted @ 2020-12-01 10:23 Juwan 阅读(3354) 评论(0) 推荐(0) 编辑
摘要: 如果想保护 py 代码,可以将代码编译成字节码运行。 目前标准 micropyhton 只能通过 import 执行。 获取 *.mpy 的手段有编译生成,或上层 compile 导出。 测试看这里:https://github.com/micropython/micropython/blob/ma 阅读全文
posted @ 2020-11-19 18:24 Juwan 阅读(1135) 评论(4) 推荐(0) 编辑
摘要: 大 佬 鼠 开始进入 linux 开发拉! Linux Kernel C语言编程范式 https://www.cnblogs.com/wahaha02/p/10147639.html U-boot引导内核流程分析 https://blog.csdn.net/qq_28992301/article/d 阅读全文
posted @ 2020-11-19 13:18 Juwan 阅读(796) 评论(0) 推荐(1) 编辑
摘要: 主要是备份代码。 class board_info: def set(key, value=None): return setattr(__class__, key, value) def all(): return dir(__class__) def get(): return getattr( 阅读全文
posted @ 2020-10-12 14:59 Juwan 阅读(526) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页