Keil5栈分析设置

Stack use in C and C++ AC5/armcc Keil Webpage Setting linker options: --callgraph --info=stack --info=summarystack Result result file locates at ${buildFolder}/${projectName}.build_log.htm AC6/armcl...

APDU常用指令

简述 APDU: Application Protocol data unit,,是智能卡与智能卡读卡器之间传送的信息单元, (向智能卡发送的命令)指令(ISO 7816-4规范有定义):CLA INS P1 P2 Lc Data Le。 CLA:指令类别;INS:指令码;P1、P2:参数;Lc:为Data的长度;Le:为希望响应时回答的数据字节数,0表最大可能长度。 必选部分:CLA, INS...

bat输入a=1到文件

D:\>echo a=1>a.txt D:\>type a.txt a= D:\>(echo a=1)>a.txt D:\>type a.txt a=1 ...

KiFindFirstSetLeft——内核快速查找uint32_t最高位1的算法

KiFindFirstSetLeft 是一个全局的字节数组,大小是256字节,定义如下: const CCHAR KiFindFirstSetLeft[256] = { 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, ...

github加速

公开代理 cnpmjs git config --global url."https://github.com.cnpmjs.org/".insteadOf "https://github.com/" ghproxy 官方网站 git config --global url."https://ghproxy.com/https://github....

扩展virtualbox已经创建的硬盘(含快照)

起因 一开始分配的给ubuntu的磁盘大小不够,需要临时扩展硬盘vdi 系统版本 VirtualBox 6.1.28 Ubuntu 20.04.3 步骤 调整硬盘大小 VirtualBox -> 管理(F) -> 虚拟介质管理(V)... Ctrl + D -> 调整对应硬盘文件大小 调整快照 如果虚拟机存在快照需要同步调整快照大小,否则虚拟机内还是旧的大小 先...

打印 gcc 预定义的宏信息

命令 gcc -dM -E - < /dev/null 参数 含义 -dM 生成预定义的宏信息 -E 表示预处理操作完成后就停止,不再进行下面的操作 详见gcc手册 示例: ubuntu@esp:~$ gcc -dM -E - < /dev/null #define __SSP_STRONG__ 3 #define __DBL_MIN_EXP__ (-1021)...