![](https://img-blog.csdnimg.cn/20190915151606927.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
【语言与编译】
文章平均质量分 76
C/C++,Java,Python,PHP等等
rtoax
行百里者半九十
展开
-
Link Time Optimizations: New Way to Do Compiler Optimizations
Link Time Optimizations: New Way to Do Compiler Optimizations - Johny's Software Labhttps://johnysswlab.com/link-time-optimizations-new-way-to-do-compiler-optimizations/We at Johny’s Software Lab LLC are experts in performance. If performance is in any way转载 2022-06-09 15:13:01 · 376 阅读 · 0 评论 -
Check if a digraph is a DAG (Directed Acyclic Graph 有向无环图) or not
Check if a digraph is a DAG (Directed Acyclic Graph) or notCheck if a digraph is a DAG (Directed Acyclic Graph) or notGiven a directed graph, check if it is a DAG (Directed Acyclic Graph) or not. A DAG is a digraph (directed graph) that contains n.转载 2022-05-28 14:36:06 · 352 阅读 · 0 评论 -
GCC GIMPLE
GIMPLE (GNU Compiler Collection (GCC) Internals)GIMPLE (GNU Compiler Collection (GCC) Internals)https://gcc.gnu.org/onlinedocs/gccint/GIMPLE.html12 GIMPLEGIMPLE is a three-address representation derived from GENERIC by breaking down GENERIC expressio翻译 2022-05-25 18:05:28 · 342 阅读 · 0 评论 -
24 GCC LTO - Link Time Optimization
LTO - GNU Compiler Collection (GCC) Internalshttps://gcc.gnu.org/onlinedocs/gcc-4.6.3/gccint/LTO.html24 Link Time Optimization24.1 Design OverviewLink time optimization is implemented as a GCC front end for a bytecode representation of GIMPLE that转载 2022-05-20 16:43:38 · 667 阅读 · 0 评论 -
llvm CreateZExt, Value,CallInst
// 文件 clang/lib/CodeGen/CGExpr.cppEmitPointerWithAlignment (返回值 Address)EmitArrayToPointerDecay (返回值 Address)EmitLValue (返回值 LValue)EmitCallExprLValue (返回值 LValue)EmitCallExpr (返回值 RValue)EmitBuiltinExpr (返回值 RValue)// 文件 clang/lib/CodeGen/CGBuilti.原创 2022-05-14 11:16:54 · 475 阅读 · 1 评论 -
gdb x 打印内存的值
打印内存的值 | 100个gdb小技巧https://wizardforcel.gitbooks.io/100-gdb-tips/content/examine-memory.html打印内存的值例子#include <stdio.h>int main(void){ int i = 0; char a[100]; for (i = 0; i < sizeof(a); i++) {转载 2022-05-11 22:03:25 · 1155 阅读 · 0 评论 -
GCC wiki: AutoFDO tutorial
AutoFDO/Tutorial - GCC Wikihttps://gcc.gnu.org/wiki/AutoFDO/TutorialFor the longest time, compilers have been producing optimised binaries. However, in today's world it can often be daunting to know exactly which optimisations you should choose (more tha转载 2022-05-07 15:37:07 · 374 阅读 · 0 评论 -
GCC 编译器的 AutoFDO 优化
AutoFDO Optimizations For The GCC Compiler - Phoronixhttps://www.phoronix.com/scan.php?page=news_item&px=MTE5NTc此补丁实现了 GCC 的细粒度 AutoFDO 优化。它使用 linux perf 来收集样本配置文件,并使用调试信息来表示配置文件。在 GCC 中,它使用配置文件来注释 CFG 以驱动 FDO。这可以带来传统基于仪器的 FDO 的 50% 到 110% 的加速。(对于许多翻译 2022-05-07 14:55:49 · 701 阅读 · 0 评论 -
PGO - Profile-guided optimizations
Profile Guided Optimization (PGO) – Under the Hood - C++ Team Bloghttps://devblogs.microsoft.com/cppblog/profile-guided-optimization-pgo-under-the-hood/Profile Guided Optimization (PGO) - C++ Team Bloghttps://devblogs.microsoft.com/cppblog/profile-guided-o翻译 2022-05-06 11:45:10 · 1485 阅读 · 1 评论 -
FDO - Feedback directed optimization with GCC and Perf
https://blog.wnohang.net/index.php/2015/04/29/feedback-directed-optimization-with-gcc-and-perf/https://blog.wnohang.net/index.php/2015/04/29/feedback-directed-optimization-with-gcc-and-perf/Gcc 5.0 hasaddedsupport for FDO which usesperfto generat...转载 2022-05-06 10:11:30 · 419 阅读 · 0 评论 -
LLVM Bitcode File Format - LLVM 比特流文件格式
LLVM Bitcode File Format — LLVM 15.0.0git documentationhttps://llvm.org/docs/BitCodeFormat.html目录AbstractOverviewBitstream FormatMagic NumbersPrimitivesAbbreviation IDsBlocksData RecordsAbbreviationsStandard BlocksBitcode Wrapper Fo转载 2022-04-16 18:17:22 · 381 阅读 · 1 评论 -
LLVM Language Reference Manual: LLVM语言参考手册
LLVM Language Reference Manual — LLVM 15.0.0git documentationhttps://llvm.org/docs/LangRef.html转载 2022-04-16 17:04:37 · 566 阅读 · 0 评论 -
LLVM PHI - if else
LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM-Linux文档类资源-CSDN下载LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM-Linux文档类资源-CSDN下载LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,LLVM,更多下载资源、学习资料请访问CSDN下载频道.htt...原创 2022-04-16 16:33:41 · 421 阅读 · 1 评论 -
AbstractSyntax Tree (AST)
原创 2022-04-16 15:30:46 · 352 阅读 · 0 评论 -
LLVM Kaleidoscope
1. Kaleidoscope: Kaleidoscope Introduction and the Lexer — LLVM 15.0.0git documentation目录1.1. The Kaleidoscope Language1.2. The Lexer1.1. The Kaleidoscope LanguageThis tutorial is illustrated with a toy language called “Kaleidoscope” (deriv.转载 2022-04-16 15:27:16 · 218 阅读 · 0 评论 -
LLVM 系统入门¶
Getting Started with the LLVM System — LLVM 15.0.0git documentationhttps://llvm.org/docs/GettingStarted.html目录概述获取源代码并构建 LLVM要求硬件软件宿主 C++ 工具链,编译器和标准库LLVM 入门术语和符号解压 LLVM 档案从 Git 签出 LLVM本地 LLVM 配置编译 LLVM 套件源代码交叉编译 LLVMLLVM 对象...翻译 2022-04-15 17:42:06 · 879 阅读 · 0 评论 -
LLVM 入门/教程
Getting Started/Tutorials — LLVM 15.0.0git documentationhttps://llvm.org/docs/GettingStartedTutorials.html对于那些刚接触 LLVM 系统的人。LLVM 系统入门讨论如何使用 LLVM 基础架构快速启动和运行。从解压和编译分发到执行某些工具的一切。LLVM 教程:目录关于使用 LLVM 的教程。包括有关使用 LLVM 制作自定义语言的教程。LLVM 程序员手册介绍 LLVM转载 2022-04-15 16:55:35 · 1422 阅读 · 0 评论 -
LLVM编译器基础 架构
The LLVM Compiler Infrastructure Projecthttps://llvm.org/Features.htmlLLVM 功能C 和 C++的LLVM 编译器系统包括以下内容:C、C++、Objective-C、Fortran 等的前端。它们支持 ANSI 标准的 C 和 C++ 语言。此外,还支持许多 GCC 扩展。 LLVM 指令集的稳定实现,它同时用作在线和离线代码表示,以及汇编 (ASCII) 和字节码(二进制)读取器和写入器,以及验证器。 一个强大的通道翻译 2022-04-14 20:29:09 · 339 阅读 · 1 评论 -
LTO 链接时优化
LTO 链接时优化荣涛2022-02-28文档修改日志日期修改内容修改人备注2022-02-28创建荣涛关键字LTO:链接时优化(Link Time Optimization)IPA:过程间分析(inter-procedural analysis)IPO:过程见优化(inter-procedural optimization)WHOPR:(Whole program assumptions, linker plugin and symbol visi原创 2022-03-12 19:35:17 · 3703 阅读 · 0 评论 -
Facebook‘s BOLT Nearing Mainline LLVM For Optimizing Binaries
Facebook's BOLT Nearing Mainline LLVM For Optimizing Binaries - Phoronixhttps://www.phoronix.com/scan.php?page=news_item&px=BOLT-Nearing-LLVM-MonorepoFacebook's BOLT project for optimizing the performance out of compiled binaries is nearing the point转载 2022-01-21 13:38:32 · 187 阅读 · 2 评论 -
《x86汇编语言:从实模式到保护模式》课后答案
http://www.lizhongc.com/myfiles/download/chkpnt_ans.txthttp://www.lizhongc.com/myfiles/download/chkpnt_ans.txt《x86汇编语言:从实模式到保护模式》检测点和习题答案 检测点1.1:按顺序分别为:13 15 78 255 128 56091检测点1.2:按顺序分别为:1000 1010 1100 1111 11001 1000000 1100100 1111111转载 2022-01-15 11:19:11 · 1037 阅读 · 0 评论 -
linux: kill -9
首先查看kill信号$ kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGEMT 8) SIGFPE 9) SIGKILL 10) SIGBUS11) SIGSEGV 12) SIGSYS 13) SIGPIPE 14) SIGALRM 15) SIGTERM16) SI转载 2020-05-17 13:25:51 · 611 阅读 · 0 评论 -
ifconfig源代码-NetBSD
NetBSD是一个免费的,具有高度移植性的 UNIX-like 操作系统,是现行可移植平台最多的操作系统,可以在许多平台上执行,从 64bit alpha 服务器到手持设备和嵌入式设备。NetBSD计划的口号是:"Of course it runs NetBSD"。它设计简洁,代码规范,拥有众多先进特性,使得它在业界和学术界广受好评。由于简洁的设计和先进的特征,使得它在生产和研究方面,都有卓越的表...转载 2019-02-26 22:01:47 · 574 阅读 · 1 评论 -
shell之xargs与-exec与管道的区别你造吗?
Table of Contents1、xargs作用:2、使用模式:3、xargs常用选项4、xargs与管道|的区别5、xargs与-exec的区别1、xargs作用:(1)将前一个命令的标准输出传递给下一个命令,作为它的参数,xargs的默认命令是echo,空格是默认定界符(2)将多行输入转换为单行2、使用模式:front command | xarg...转载 2019-03-10 15:17:11 · 327 阅读 · 0 评论 -
GIO (Gnome Input/Output)
Table of Contents维基百科FeaturesSee alsoKIO– an analogous KDE libraryReferencesExternal links百度百科GNOMEDEVELOPER维基百科GIO(Gnome Input/Output) is alibrary, designed to present program...原创 2019-03-02 17:52:23 · 3020 阅读 · 0 评论 -
windows下安装cygwin以及SeismicUnix在cygwin下的安装(windows下安装linux环境,非虚拟机、非双系统)
一直想在我的笔记本上装个linux,之前装过win10和Ubuntu双系统,后来觉得卡,就重装了一个单Ubuntu系统,在重复的装软件,各种软件(办公、学习、编程),就连微软的office都已经让我安装在wine上了,网易云音乐......后来就在一天早上,开机,停留在开机输入密码的登录界面,键盘无效有木有,度娘了半天无果,去修了,果断修不好啊,这可是我多月来的心血,无奈,再重装。这次我选择了原创 2018-01-17 22:23:55 · 1787 阅读 · 15 评论 -
Linux一些软件的安装
当然,最直接有效的方法是sudo安装(sudo apt-get install + softwarename)以下是一些软件的安装过程笔记,还希望有用吧!也给自己留个备份的,哈哈哈。1.sac/sac2000 install in: /opt/sac####################change the install position#############原创 2017-09-07 19:55:52 · 822 阅读 · 0 评论 -
lsof 命令实用用法介绍
Table of Contents前言Linux 下有哪些文件lsof 命令实用用法介绍查看当前打开的所有文件列出被删除但占用空间的文件恢复打开但被删除的文件查看当前文件被哪些进程打开查看某个目录文件被打开情况查看当前进程打开了哪些文件也可以通过进程id查看,可跟多个进程id,使用逗号隔开:查看某个端口被占用情况查看所有的TCP/UDP连接查看某...转载 2019-03-10 15:24:59 · 467 阅读 · 0 评论 -
linux shell删除所有文件夹下指定扩展名(关键字)的所有文件
打开文件gedit clean.sh&敲入文本#!/bin/bash# Rong Tao 2018.1.16filename=("*.class" "*.pyc" "*.h.gch" "*.o" "*~")for name in ${filename[@]}; do echo $name find . -name $name -type f -pri原创 2018-01-16 14:32:19 · 3226 阅读 · 0 评论 -
tcpdump命令速查
tcpdump和它类似的工具在windows中是wireshark,其采用底层库winpcap/libpcap实现。采用了bpf过滤机制。下面我们看看提供的不同参数的含义。参数名 含义 -n 使用IP地址表示主机。使用数字表示端口 -i 指定要监听的端口。如果为"-i any"表示住区所有网卡数据包 -v 输出诸如ip数据包中的TTL更加详细的信息 -t 不打印时间戳 -e 显示以太网帧头部信息 -c 仅仅抓取指定数量的数据包.原创 2020-05-17 14:31:53 · 341 阅读 · 0 评论 -
GitHub标星1.3W!五分钟带你搞定Linux Bash脚本使用技巧
原文:https://mp.weixin.qq.com/s/NnpyTOAghr_MXXK5H9twAg来自:开源最前线(ID:OpenSourceTop)综合自:https://leanpub.com/u/dylanaraps、https://leanpub.com/u/dylanarapsBash脚本比我们想象中的都要强大,通过Bash脚本,大多数任务都可以让你在无任何其它语...转载 2019-09-15 16:42:58 · 481 阅读 · 0 评论 -
shell获取文件扩展名(前缀,后缀)
#!/bin/bashfilename=rongtao.tar.gzecho "${filename%%.*}"echo "${filename%.*}"echo "${filename#*.}"echo "${filename##*.}"#运行结果:# sh extension.sh #rongtao#rongtao.tar#tar.gz#gz...原创 2020-02-10 18:38:06 · 10283 阅读 · 0 评论 -
iptables详解(1):iptables概念
iptables其实不是真正的防火墙,我们可以把它理解成一个客户端代理,用户通过iptables这个代理,将用户的安全设定执行到对应的"安全框架"中,这个"安全框架"才是真正的防火墙,这个框架的名字叫netfilter。netfilter才是防火墙真正的安全框架(framework),netfilter位于内核空间。iptables其实是一个命令行工具,位于用户空间,我们用这个工具操作真正的框架。netfilter/iptables(下文中简称为iptables)组成Linux平台下的包过滤防火墙转载 2020-10-01 21:07:34 · 1182 阅读 · 0 评论 -
shell字符串是否以a-zA-Z字母开头
if [ `echo $file|grep ^[a-zA-Z]` ]; then echo YESfi原创 2020-02-10 18:47:28 · 1370 阅读 · 0 评论 -
【转】linux通配符和正则表达式
Table of Contents通配符Shell常见通配符:shell Meta字符(元字符)转义字符正则表达式通配符和正则表达式比较grep1.grep简介2.grep正则表达式元字符集(基本集)3.用于egrep和 grep-E的元字符扩展集5.Grep命令选项6.实例参考通配符通配符是shell在做Pathna...转载 2020-02-07 17:18:24 · 325 阅读 · 1 评论 -
Linux Shell 中各种括号的作用 ()、(())、[]、[[]]、{}
来源:乌托邦2号blog.csdn.net/taiyang1987912/article/details/39551385转自:Linux爱好者 Table of Contents一、小括号,圆括号()二、中括号,方括号[]三、大括号、花括号 {}四、符号$后的括号五、使用一、小括号,圆括号()1、单小括号 ()①命令组。括号中的命令将会新开一个子s...转载 2019-04-13 18:00:51 · 513 阅读 · 0 评论 -
Linux思维导图及命令速查表8张
Table of Contents1、Linux学习路径:2、Linux桌面介绍:3、FHS(文件系统目录标准):4、Linux需要特别注意的目录:5、linux内核学习路线:6、LinuxSecurityCoaching:7、Linux命令参考:8、Linux命令速查表:1、Linux学习路径:2、Linux桌面介绍:3、FHS(文件系统目录标准):4、Linux需要特别注意的目录:5、linux内核学习路线:亦可见:ht...转载 2020-05-22 22:52:23 · 353 阅读 · 0 评论 -
linux tar 命令
原创:译者:GHLandyLinux中国2016-09-24Table of Contentstar 命令语法示例 1:创建一个 tar 归档文件示例 2:列出归档文件中的内容示例 3:追加文件到归档(tar)文件中示例 4:从 tar 文件中释放文件以及目录示例 5:释放 tar 文件到指定目录示例 6:释放 tar 文件中的指定文件或目录示例 7:...转载 2019-08-24 14:29:20 · 341 阅读 · 1 评论 -
CentOS7虚拟机断电,出现:“Entering emergency mode. Exit the shell to continue.”
按照以下方法解决了。log中有提示输入journalctl:查看系统的日志信息;直接输入此命令查看,日志内容可能很多,快速翻页或者直接定位到最新的日志信息,发现有标红的,说明此处出现错误。错误原因:failed to mount /sysroot.Dependency failed for Initrd root File System.Dependency faile...转载 2020-02-11 18:48:44 · 3573 阅读 · 0 评论 -
【转】Linux 命令行下的好东西:一些常用指令
Table of Contentstmuxtreeackrsyncaspelltee+r>clocprintenvfindtypehelpenvfilestringsod为你列举一些可能没注意过的好用的 Linux 命令行命令。这篇文章仅讨论 Linux 环境下的东西,很显然对 MacOS 也适用。其实很多东西虽然有 W...转载 2020-02-04 15:07:24 · 362 阅读 · 0 评论