上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: OPEN #1 test.txt /Create LOCAL &Emdc_Rx_Timestape &Emdc_Rx_Timestape=V.VALUE(Emdc_Rx_Timestape) PRINT V.VALUE(Emdc_Rx_Timestape) "&Emdc_Rx_Timestape" 阅读全文
posted @ 2023-11-21 11:04 西北小蚂蚁 阅读(100) 评论(0) 推荐(0) 编辑
摘要: OPEN #1 test.txt /Create WRITE #1 %D V.VALUE(count_uss_100ms) WAIT 200.0ms WRITE #1 %D V.VALUE(count_uss_100ms) CLOSE #1 ENDDO 阅读全文
posted @ 2023-11-21 11:02 西北小蚂蚁 阅读(47) 评论(0) 推荐(0) 编辑
摘要: # __attribute__((weak)): 可以定义两个相同的函数或变量,带__attribute__((weak))的为弱,如果有不带__attribute__((weak))的变量或函数以不带的为准,若没有则以带__attribute__((weak))为准; - test_1.c: `` 阅读全文
posted @ 2023-08-14 19:34 西北小蚂蚁 阅读(24) 评论(0) 推荐(0) 编辑
摘要: # vscode终端git自动补全 - ctrl+shift+p 输入setting.json,选择如下: ![](https://img2023.cnblogs.com/blog/2468371/202308/2468371-20230814111600979-1043719235.png) - 阅读全文
posted @ 2023-08-14 11:20 西北小蚂蚁 阅读(428) 评论(0) 推荐(0) 编辑
摘要: C语言预定义宏: #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { printf(" __FUNCTION__: %s\n", __func__); printf(" __func__: %s\n", __ 阅读全文
posted @ 2023-04-14 10:53 西北小蚂蚁 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 打印文件内数据 #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <stdlib.h> 阅读全文
posted @ 2022-09-13 16:11 西北小蚂蚁 阅读(89) 评论(0) 推荐(0) 编辑
摘要: __builtin_popcount()函数 作用:__builtin_popcount ()用于计算一个 32 位无符号整数有多少个位为1 n = __builtin_popcount(val); 阅读全文
posted @ 2022-07-29 11:28 西北小蚂蚁 阅读(352) 评论(0) 推荐(0) 编辑
摘要: == 和 &的优先级熟高? 答案:==的优先级高于& 阅读全文
posted @ 2022-07-29 11:18 西北小蚂蚁 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 位运算之>>——右移 右移填充的数: 有符号数的话是最高位的那个数,正数为1,负数为0; 无符号数填充的是0,无论正负; 阅读全文
posted @ 2022-07-28 19:00 西北小蚂蚁 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 1、二进制数按位依次取出 代码: for(i = 0; i<32; i++) { a[i] = val & 1; val = val >> 1; } 2、清除二进制最低位的1 x = x & (x-1) 3、综合 阅读全文
posted @ 2022-07-25 13:55 西北小蚂蚁 阅读(25) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页