摘要: 如果要使用LLVM的能力,则需熟悉如何根据自己的代码生成出llvm的IR,以便提供给llvm使用。 ### 测试创建function 测试代码如下02_test_function.cpp ```c++ #include "llvm/IR/Module.h" #include "llvm/IR/LLV 阅读全文
posted @ 2023-07-31 21:35 00lab 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 其他配置过程不重复写了,用户名添加好后,添加如下配置到/etc/samba/smb.conf可解决没有写权限的问题 ```shell [usr_name] path=/home/usr_name available=yes valid users=usr_name writeable=yes gue 阅读全文
posted @ 2023-07-31 20:58 00lab 阅读(745) 评论(0) 推荐(0) 编辑
摘要: ## LLVM源码编译 准备好匹配的环境后,我的环境如下: ```shell $ cat /proc/version Linux version 5.4.0-150-generic (buildd@bos03-amd64-012) (gcc version 7.5.0 (Ubuntu 7.5.0-3 阅读全文
posted @ 2023-07-29 14:49 00lab 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 题:28. 找出字符串中第一个匹配项的下标 https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/ 给你两个字符串 haystack 和 needle ,请你在 haystack 字符串中找出  阅读全文
posted @ 2023-07-20 17:32 00lab 阅读(21) 评论(0) 推荐(0) 编辑
摘要: ### 概述 Squashfs是一套供Linux为基础使用的GPL开源只读压缩文件系统。 1)Squashfs能压缩文件系统内的文件、inode及目录结构,支持最大1024千字节区段,以获得更大的压缩比。 2)Squashfs专门为一般的只读文件系统而设计,可应用于数据备份、系统资源紧张的硬件系统上 阅读全文
posted @ 2023-07-18 16:57 00lab 阅读(1879) 评论(0) 推荐(1) 编辑
摘要: https://leetcode.cn/problems/count-primes/ 204 给定整数 n ,返回 所有小于非负整数 n 的质数的数量 。 示例 1: 输入:n = 10 输出:4 解释:小于 10 的质数一共有 4 个, 它们是 2, 3, 5, 7 。 这题如果用对每个数i,让j 阅读全文
posted @ 2023-07-13 21:19 00lab 阅读(18) 评论(0) 推荐(0) 编辑
摘要: leetcode题:(https://leetcode.cn/problems/regular-expression-matching/) 给你一个字符串 s 和一个字符规律 p,请你来实现一个支持 '.' 和 '*' 的正则表达式匹配。 '.' 匹配任意单个字符 '*' 匹配零个或多个前面的那一个 阅读全文
posted @ 2023-07-12 13:08 00lab 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 总体介绍 类别 算法名 平均时间 最好时间 最坏时间 辅助存储 稳定性 插入排序 直接插入 O(n^2) O(n) O(n^2) O(1) 稳定 插入排序 希尔(shell)排序 O(n^1.3) O(n) O(n^2) O(1) 不稳定 选择排序 直接选择 O(n^2) O(n^2) O(n^2) 阅读全文
posted @ 2023-07-09 23:46 00lab 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 进入git仓目录后 统计指定作者和时间的: ```shell git log --author="xxx_author_name_xxxx" --since=2023-01-01 --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; 阅读全文
posted @ 2023-07-06 09:26 00lab 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 题:https://leetcode.cn/problems/lru-cache/description/ 请你设计并实现一个满足 LRU (最近最少使用) 缓存 约束的数据结构。 实现 LRUCache 类: LRUCache(int capacity) 以 正整数 作为容量 capacity 初 阅读全文
posted @ 2023-06-18 17:59 00lab 阅读(32) 评论(0) 推荐(0) 编辑