![](https://img-blog.csdnimg.cn/20190927151043371.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Programming Practice
Document practical problems encountered in using different program languages, using c++ in most of time.
Arthur...J
CAD/CAM软件开发,EDA软件开发,图像处理软件开发
展开
-
LLVM IR 生成 -emit-llvm
emit-llvm 生成IR文件,默认结果为bitcode结果(.bc);-S 生成汇编格式文件。输入:test.cc。输出:test.ll。原创 2024-05-30 09:33:57 · 242 阅读 · 0 评论 -
GDB 使用python
【代码】GDB 使用python。原创 2024-05-11 16:49:40 · 770 阅读 · 0 评论 -
GDB断点执行的次数
需求背景:条件断点可能执行多次,但是可能在最后一次执行引发了后续的问题,但是断点位置并非问题现场,如何使得断点在最后一次停下来?原创 2024-05-11 13:36:37 · 381 阅读 · 0 评论 -
std::map/unordered_map count & find perf
对于std::map/unordered_map而言,因key值仅能出现一次,故其count函数的实现一般会调用find函数,其perf没有大的差别。对于std::map/unordered_map而言,std::cout只有0或1的返回值。如果仅需要知道std::map/unordered_map中是否含某key值,那么使用count即可。std::cout, 遍历容器,对某个元素出现的次数进行计数,返回次数。std::find, 遍历容器,如果找到第一个就返回其迭代器。原创 2024-04-22 15:36:42 · 186 阅读 · 0 评论 -
Basic principles of backward/downward compatibility of files
【代码】Basic principles of backward/downward compatibility of files。原创 2024-03-27 15:50:27 · 267 阅读 · 0 评论 -
[C++]关于隐藏封装涉及的内存问题
当需要对外部user隐藏类内部实现(包括data & APIs)时,要特别注意不同实现方式对内存performance的影响。原创 2024-02-23 11:20:52 · 670 阅读 · 1 评论