随笔分类 -  C

linux shell spp2tc CRC计算
摘要:https://www.lammertbies.nl/comm/info/crc-calculation https://github.com/lammertb/libcrc #echo "$#" #echo "$@" #echo "$0" #echo "$1" #echo "$2" curpath 阅读全文

posted @ 2022-12-22 07:38 yanhc 阅读(106) 评论(0) 推荐(0)

gcc c asm,C程序内嵌汇编
摘要:gcc说明: https://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Extended-Asm.html https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/Extended-Asm.html#Extended-Asm 有时候, 阅读全文

posted @ 2020-05-31 16:32 yanhc 阅读(832) 评论(0) 推荐(0)

makefile and make tips
摘要:wildcard,扩展通配符 https://blog.csdn.net/hktkfly6/article/details/25644139 SRC = $(wildcard *.c) 等于指定编译当前目录下所有.c文件,如果还有子目录,比如子目录为inc,则再增加一个wildcard函数,象这样: 阅读全文

posted @ 2020-05-21 22:04 yanhc 阅读(256) 评论(0) 推荐(0)

rtems chain
摘要:rtems 4.6 涉及文件 chain.h (cpukit\libcsupport\include)提供用户程序接口,用户程序接口无下划线开头,内核程序使用下划线开头 /* chain.h * * This include file contains all the constants and s 阅读全文

posted @ 2020-03-14 12:21 yanhc 阅读(203) 评论(0) 推荐(0)

gcc, ld
摘要:GCC gcc除了具备基本的c文件编译功能外,还把其它工具的功能也集成了进来,比如as的汇编功能,ld的链接功能。 因此,gcc也可以通过-Wa, option,将option传给汇编器as;也可以通过-Wl, option,将option传给链接器ld。 -N,gcc手册中没看到该选项,这是属于链 阅读全文

posted @ 2020-02-06 20:31 yanhc 阅读(3550) 评论(0) 推荐(0)

STM32,ARM,Keil工具相关
摘要:One ELF Section per Function https://blog.csdn.net/iceiilin/article/details/6091575 因此,可以得出,选项One ELF Section per Function的主要功能是对冗余函数的优化。通过这个选项,可以在最后生 阅读全文

posted @ 2020-01-28 15:28 yanhc 阅读(244) 评论(0) 推荐(0)

由lwip的mbox中netbuf传递看指针的指针
摘要:如果使用netconn API的话,udp接收过程需要用到mbox传递接收的包(传递的是指针) mbox发送过程: api_msg.c中recv_udp中会将接收的包发送给udp的接收mbox sys_mbox_trypost传送的仅仅是netbuf的指针 在sys_mbox_trypost中,调用 阅读全文

posted @ 2018-04-21 12:42 yanhc 阅读(844) 评论(0) 推荐(0)

C标准库与嵌入式
摘要:stddef.h,其中包括size_t,sizeof函数返回值,不同平台的大小不一致 Size and pointer difference types[edit] The C language specification includes the typedefs size_t and ptrdi 阅读全文

posted @ 2018-03-29 14:21 yanhc 阅读(290) 评论(0) 推荐(0)

导航