Intro to the LLVM MC Project

LLVM - 学习笔记一 1. 工具和库 LLVM中的独立工具: opt:在IR级对程序进行优化的工具,输入必须是LLVM的bitcode,生成的输出文件必须具有相同的类型。 llc:通过特定后端将LLVM bitcode转换成目标汇编或目标问价的工具。 llvm-mc:能够汇编指令并生成像ELF、MachO、PE等对象格式的目标文件,也可以反汇编相同的对象,从而转存这些指令的相应汇编信息和内部LLVM机器指令数据结构。 lli:LLVM IP的解释器和JIT编译器。 llvm-link:将几个LLVM bitcode链接在一起, 阅读详情

Friday, April 9, 2010

Intro to the LLVM MC Project

The LLVM Machine Code (aka MC) sub-project of LLVM was created to solve a number of problems in the realm of assembly, disassembly, object file format handling, and a number of other related areas that CPU instruction-set level tools work in. It is a sub-project of LLVM which provides it with a number of advantages over other compilers that do not have tightly integrated assembly-level tools.

This blog post talks about how the MC project evolved, describes a few different aspects of it , talks about the improvements/capabilities it brings to LLVM, and finishes off with the current status of the project.

History and Background

Before MC came around, LLVM was already a mature compiler system that support both static compilation (through a normal assembler) and as well as JIT compilation (which emitted encoded instruction bytes directly to memory) on many different targets and sub-targets. However, despite these capabilities, the implementation of these subsystems was not designed wonderfully: why should the X86 instruction encoder (used by the JIT) have to know how to encode the weird pseudo instructions that the X86 code generator uses for its convenience? Why was this code emitter specific to the one code model used by the JIT?

Beyond lack of elegance, it has been a goal for quite a while (for example, see Bruno’s 2009 devmtg talk) to directly integrate an assembler into the compiler. Doing so would solve a number of problems: For fast compiles, it is incredibly wasteful for the compiler to carefully format a massive text file, then fork/exec an assembler, which then has to lex/parse/validate the file. In fact, since the rest of Clang is so fast, the assembler takes ~20% of compile time for C code at -O0 -g. In addition to winning back this performance, not relying on an external assembler is attractive for several other reasons: the compiler doesn’t have to worry about lots of different buggy assemblers which have similar but inconsistent syntax, Windows users typically don’t have assemblers (and MASM is not fully-featured enough to be targeted by a compiler), some systems like FreeBSD have old versions of binutils that lack modern features, etc.

Previously, we tried implementing a “direct object emission” system to allow the code generator to write .o files without an assembler, but this project hit a number of problems. One of the biggest problems is that it tried to re-implement all of the logic in AsmPrinter which handled “lowering” of the codegen IR to machine level constructs. This includes the logic that handled selection of linkage types, section selection, constant lowering and emission, lowering of debug info and exception info, etc. While these may not sound like a big deal, this logic is very delicate and having subtle differences between the .o file writer and .s file writer (e.g. one emitted a strong symbol and one emitting a weak symbol) wasn’t acceptable. This previous project never even got to the interesting parts of an assembler, like relaxation support.

Finally, beyond the previous scope of LLVM, there is a bigger toolchain out there that has to deal with things like assembly and disassembly of instructions. When a new instruction set extension comes around (e.g. SSE 4.2) the new instructions need to be added to the assembler, the disassembler, and the compiler. Since LLVM already had a JIT, it already knew how to do encoding of instructions, and we speculated that it might be reasonable to produce an assembler from the textual descriptions of the instructions in the code generator’s tables. It would be great to be able to add an instruction description to one place and get the assembler, disassembler, and compiler backend support all at once.

Primary MC Components

You can break down the MC-related data structures and components into “that which operates on instructions” and “that which does other stuff”. To provide a consistent abstraction we introduced the new MCInst class to represent an instruction with operands (e.g. registers, immediates, etc) which is separate from the code generator’s existing notion of an instruction (MachineInstr). The “other stuff” includes a variety of classes like MCSymbol (which represents a label in a .s file), MCSection, MCExpr etc. You can read the headers in the llvm/include/MC directory for more information on these.

These MC classes live at a very low level in the LLVM system, depending only on the support and system libraries. The idea of this is that you can build something low-level (like a disassembler library) that doesn’t have to link in the entire LLVM code generator (a disassembler doesn’t need a register allocator 😃.

Given this background, I’ll talk about the major components of the MC project: the instruction printer, the instruction encoder, the instruction parser, the instruction decoder, the assembly parser, the assembler backend, and the compiler integration. LLVM already had these (except the instruction decoder and assembly parser), but the existing code has been refactored out and reworked substantially.

Instruction Printer

The instruction printer is a very simple target-specific component that implements the MCInstPrinter API. Given a single MCInst, it formats and emits the textual representation of the instruction to a raw_ostream. Targets can have multiple MCInstPrinters, for example the X86 backend includes an AT&T and an Intel Syntax instruction printer. MCInstPrinters don’t know anything about sections, directives, or other things like that so they are independent of object file format.

Instruction printing is somewhat fiddly code (formatting all the operands exactly right, dealing with inconsistencies in the syntax of various instructions, etc) but LLVM already had a TableGen backend that auto-generated much of this from the .td files. Getting an old-style LLVM target to support this requires introducing a new MachineInstr -> MCInst lowering pass, which then passes the MCInst to the InstPrinter.

Instruction Encoder

The instruction encoder is another target-specific component which transforms an MCInst into a series of bytes and a list of relocations, implementing the MCCodeEmitter API. The API is quite general, allowing any bytes generated to be written to a raw_ostream. Because the X86 instruction encoding is very complex (aka “completely insane”), the X86 backend implements this interface with custom C++ code that is driven from data encoded in the .td files. This is the only realistic way to handle all the prefix bytes, REX bytes etc, and is derived from the old JIT encoder for X86. We hope and expect that encoders for future RISC targets will be directly generated from the .td files. When used by the compiler, the same MachineInst -> MCInst lowering code is used as for the instruction printer.

Instruction Parser

In order to parse instructions when reading a .s file, targets can implement lexers and parsers for their syntax, providing the TargetAsmParser API. The lexer is largely shared code that is parameterized based on common assembly syntax features (e.g. what is the comment character?), but the parser is all target-specific. Once an instruction opcode and its operands have been parsed, it goes through a ‘matching’ process which decides which concrete instruction is being specified. For example, on X86, “addl $4, %eax” is an instruction with a 1-byte immediate, but “addl $256, %eax” uses a 4-byte immediate field and is represented as a different MCInst.

The output of an parsed instruction is an opcode + list of operands, and the parser also exposes the API for matching. Not all instructions can be matched as they are parsed from a .s file (for example, an immediate size might depend on the distance between two labels) so instructions can be held in a more abstract-than-MCInst representation until relaxation is performed if required.

Instruction Decoder

As you might expect, the instruction decoder implements the MCDisassembler API and turns an abstract series of bytes (implemented with the MemoryObject API, to handle remote disassembly) into an MCInst and a size. As with previous components, a target may implement multiple different decoders (the X86 backend implements X86-16, X86-32, and X86-64 decoders). The decoder turns immediate fields into simple integer immediate operands, if there is a reference to a symbol, the relocation representing the symbol has to be handled by a client of the decoder.

Assembly Parser

The assembly parser handles all the directives and other gunk that is in an .s file that is not an instruction (which may be generic or may be object-file specific). This is the thing that knows what .word, .globl etc are, and it uses the instruction parser to handle instructions. The input to the Assembly parser is a MemoryBuffer object (which contains the input file) and the assembly parser invokes actions of an MCStreamer interface for each thing it does.

MCStreamer is a very important API: it is essentially an “assembler API” with one virtual method per directive and one “EmitInstruction” method that takes an MCInst. The MCStreamer API is implemented by the MCAsmStreamer assembly printer (which implements support for printing these directives to a .s file and uses the Instruction Printer to format the MCInsts) as well as the assembler backend (which writes out a .o file). It is impossible to overstate how important the MCStreamer API is for the overall MC picture to fit together as we’ll see later.

Assembler Backend

The assembler backend is one implementation of the MCStreamer API (along with the “MCAsmStreamer” text assembly code emitter) which implements all the “hard stuff” that assemblers do. For example, the assembler has to do “relaxation” which is the process that handles things like branch shortening, situations like “the size of this instruction depends on how far apart these two labels are, but the instruction is between the two labels, how do we break the cycle?” etc. It lays out fragments into sections, resolves instructions with symbolic operands down to immediates and passes this information off to object-file specific code that writes out (say) an ELF or MachO .o file.

Compiler Integration

The final major piece of the puzzle is integrating this all into the compiler. In practice this meant making the compiler talk directly to the MCStreamer API to emit directives and instructions instead of emitting a text file. Converting over all the targets, debug info, eh emission, etc was a major project, and doubly so because it was taken as an opportunity to fix a bunch of major design issues in the AsmPrinter implementations (lots of copy and paste code etc). The new system is much better factored and lowers directly to MC constructs like MCSection and MCSymbol instead of passing around strings and using other ad-hoc data structures.

The end result of this work is that the compiler backend now invokes the same MCStreamer interface to emit code that the stand-alone assembler parser does. This gives us high confidence that using the compiler backend to emit a text file (with the “MCAsmStreamer”) and reading it back in with the asmparser will result in the same MCStreamer calls as when the code generator directly invokes them.

Building on these Primitive Components

Now that you know about the major components of the MC ecosystem, and you’ve seen how key data structures like MCInst and MCStreamer are used to communicate between the components, we can talk about building nice things out of them.

Disassembler Library

One major high-level API built on this is the “enhanced disassembler” API, which uses these components in this sequence:

  1. It uses the Instruction Decoder to read machine code bytes in memory into an MCInst and determine instruction sizes.
  2. It uses the Instruction Printer to print the textual form of the instruction to a buffer.
  3. It uses the Instruction Parser to re-parse the textual form to find precise operand boundaries in the text and build a symbolic form of the operand.

This library provides a number of great capabilities. Sean described it and the X86 implementation in , and the interface is in the header.

You can also access some of the functionality on the command line by using the llvm-mc tool:

$ echo "0xCD 0x21" | llvm-mc --disassemble -triple=x86_64-apple-darwin9
 int $33
$ echo "0 0" | llvm-mc --disassemble -triple=x86_64-apple-darwin9
 addb %al, (%rax)
$ echo "0 0" | llvm-mc --disassemble -triple=i386-apple-darwin9
 addb %al, (%eax)
$ echo "0x0f 0x01 0xc2" | llvm-mc --disassemble -triple=i386-apple-darwin9
 vmlaunch

Stand-alone Assembler

If you combine the Assembly Parser, Instruction Parser, the Assembler Backend and the Instruction Encoder, you get a traditional stand-alone system assembler. The llvm-mc tool provides this capability with a command like:

$ llvm-mc foo.s -filetype=obj -o foo.o
$ echo "    invalid_inst _foo, %ebx" | llvm-mc -filetype=obj -o /dev/null
<stdin>:1:5: error: unrecognized instruction
    invalid_inst _foo, %ebx

The second example shows that the assembly parser gives nice caret diagnostics, not just “parse error on line 1” that many assemblers produce.

Really Complicated Assembly 'cat’

If you want to, you can take the stand-alone assembler and hook the MCAsmStreamer interface up to the MCStreamer the assembler is calling. This allows you to read in a .s file (validating it) and then immediately print it back out. You can also play with options like -show-encoding and -show-inst (which shows MCInsts). Assembly cat is the default mode of llvm-mc for testing’s sake, and you can play with it like this:

$ llvm-mc foo.s -o bar.s
$ echo "addl %eax, %ebx" | llvm-mc -show-encoding -show-inst
 .section __TEXT,__text,regular,pure_instructions
 addl %eax, %ebx              ## encoding: [0x01,0xc3]
                                        ## <MCInst #66 ADD32rr
                                        ##  <MCOperand Reg:29>
                                        ##  <MCOperand Reg:29>
                                        ##  <MCOperand Reg:27>>
$ echo "xorl _foo, %ebx" | llvm-mc -show-encoding
 .section __TEXT,__text,regular,pure_instructions
 xorl _foo, %ebx              ## encoding: [0x33,0x1c,0x25,A,A,A,A]
                                        ##   fixup A - offset: 3, value: _foo, kind: FK_Data_4

The last example shows that the instruction encoder generates a fixup (aka relocation) as well as the data bytes for the instruction.

Assembly Generating Compiler

Now that the compiler is wired up to emit all of its code through the MCStreamer API, we can connect various streamers to it. To get a “classic compiler”, we can hook up an MCAsmStreamer to the and get a normal .s file out of the compiler:

$ clang foo.c -S -o foo.s

This uses the MCAsmStreamer and the Instruction Printers for the current target. One interesting observation is that .s file printing is very performance critical in the old world (when you don’t have direct .o file writing support). Generating that huge text file requires a lot of detailed formatting and the compiler isn’t doing a lot else at “-O0” mode, so it is a significant percentage of compile time.

However, most build systems (e.g. makefiles) use the compiler in “-c” mode which asks for a .o file. If the compiler supports directly writing a .o file, the .s path isn’t hot at all because it isn’t being used. This means that we can reasonably make -S mode default to emitting a .s file with tons of helpful comments in it: this mode (e.g. gcc -fverbose-asm) is supported in some form by many compilers, but most people don’t know it exists. The presence of direct .o file writing support means that we can turn this on by default! Also, the LLVM implementation of this is pretty nice, with information about spills, loop nests etc.

Compiler-Integrated Assembler

As you might have guessed by now, LLVM also supports an integrated assembler. While this will eventually become the default for targets that support it, right now clang requires you to pass the -integrated-as flag:

$ clang foo.c -c -o foo.o -integrated-as

To the user, this works just like the non-integrated-as support. If you pass -v though, you’ll see that the compiler is directly emitting the .o file and the assembler isn’t run by the driver.

This works very simply: the assembler backend is provided as the MCStreamer to the compiler, and it handles the various things the system assembler used to take care of. This means that the assembler never has to (for example) print out MCInsts to a textual representation and reparse them, it just passes the well-formed MCInsts the code generator is using directly to the assembler backend.

This is all well and good except for one thing: inline assembly. With inline assembly, arbitrary assembly language can be included in the source file (optionally munged by the compiler to insert operand constraint information etc), and we have no choice but to parse this with the assembly parser. Fortunately, we have a nice clean and well decomposed system, so we the assembly handling code just creates a new temporary assembly parser to handle the inline asm, and has it talk to the same MCStreamer instance that the compiler is using. This means that the current state of the streamer is the same when the inline assembly is parsed as it would be if the system assembler is used.

Using an integrated has other benefits as well: we can tightly integrate it with the clang diagnostics system instead of having the assembler detect the error late and report it with a foreign error. Beyond consistency, we can actually give really good information about where the error occurs, relaying it back to where in the original source code the problem is. Compare these examples with and without the integrated assembler:

$ cat t.c
int foo(int X) {
 __asm__ ("frob    %0" : "+r" (X));
 return X;
}
$ gcc t.c 
/var/folders/51/51Qw875vFdGa9KojoIi7Zk+++TM/-Tmp-//ccyXfgfZ.s:11:no such instruction: `frob %eax'
$ clang t.c
/var/folders/51/51Qw875vFdGa9KojoIi7Zk+++TM/-Tmp-/cc-4zimMn.s:15:no such instruction: `frob %eax'
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
$ clang t.c -integrated-as
t.c:2:11: error: unrecognized instruction
        frob    %eax
        ^
<inline asm>:1:2: note: instantated into assembly here
 __asm__ ("frob    %0" : "+r" (X));
          ^
1 error generated.

I don’t know about you, but I find it much more useful to know that line 2 of my C file is the problem than to find out that line 15 of a deleted file is. 😃 It is worth pointing out that it is incredibly important to show the code being parsed by the assembler, because after operand substitution etc it is not always clear from the source code what the problem is.

Status and Open Projects!

As described above, the architecture of the MC subsystems is already quite advanced and we have a lot of code written. However, not all of it is production quality and we don’t yet have people signed up to do all the interesting work! As of this writing here is the high level status:

  1. All the clang-side work is done: the driver knows -integrated-as, the diagnostics subsystem can handle assembler errors, the code generator is fully switched over to use MCStreamer, etc.
  2. The X86 and ARM disassemblers are in good shape and considered to be at or near production quality.
  3. The X86 instruction printer is done for both AT&T and Intel Syntax.
  4. The MC components have been designed to be object file independent (e.g. work for MachO, ELF, PE-COFF etc) but only have an implementation for MachO (used on Mac OS/X systems). Adding support for ELF and/or PE-COFF should be reasonably straight-forward.
  5. The X86 AT&T-syntax assembly parser is missing some important features, e.g. forward/backward labels, support for inferring suffixes on instructions (e.g. add -> addl), macros etc. However, it is sufficiently advanced to reliably parse everything generated by the LLVM X86 backend. Adding these missing features should be quite straight-forward.
  6. The X86 Intel-syntax assembly parser doesn’t exist.
  7. The ARM assembly parser is not complete (probably 50% to useful), and the instruction printer is about 50% refactored from the old-style printer.
  8. The assembler backend works quite well and currently tries to produces bitwise identical object files to the system assembler on the Mac (to allow validating through “/usr/bin/cmp”). That said, it’s algorithms aren’t all performance tuned, so it could probably be substantially faster.
  9. The old JIT code path is still alive in LLVM, it should be killed off once it is replaced with a new MC implementation. One win of this is that the JIT will support inline assembly 😃

If you’re interested in this level of the tool chain, this is a great area to get involved in, because there are lots of small to mid-sized projects just waiting to be tackled. I believe that the long term impact of this work is huge: it allows building new interesting CPU-level tools and it means that we can add new instructions to one .td file instead of having to add them to the compiler, the assembler, the disassembler, etc.

-Chris

Posted by Chris Lattner at 11:27 PM

Labels: MC

跟随一条指令来看LLVM的基本结构 LLVM是一个很复杂的软件,了解LLVM的工作原理不是很容易,然而,对于刚开始接触LLVM整个框架的工作原理来说,详细而深入,不如广泛而浅显,所以有了这一篇文章。 阅读详情

相关推荐

LLVM查缺补漏-1

include/llvm接口类定义 /Target目标描述接口 TargetMachine 和 DataLayout,是必须要在一个确定的后端中实现的,但其他接口都是可选的 除了 DataLayout 以外,其他所有的目标描述类都需要作为基类被特定目标的描述类所继承,同时提供虚函数的实现。DataLayout 类是唯一必须依赖的目标描述类,而且不能被继承。 TargetMachine 类提供了一些访问器(accessor),这些也同样需要在特定目标的描述类中实现,比如get*Info 方法

Lifelong Learning Pan 584

LLVM(使用独立的工具)

它也可以反汇编相同的对象,从而转储这些指令的相应的汇编信息和内部LLVM机器指令数据结构。它结合了解释器和静态编译器的优点,可以提高程序的性能。输入必须是LLVM位码文件(编码的LLVM IR),并且生成的输出文件必须具有相同类型。-emit-llvm标志告诉clang根据是否存在-c或-S标志生成LLVM 位码或LLVM汇编码文件。-emit-llvm和-c标志一起使用,告诉clang以LLVM位码格式生成一个目标文件。:该工具将人工可读的LLVM IR 文件(称为LLVM汇编码)转换位LLVM位码。

m0_72827793的博客 1300

LLVM编译技术应用分析

LLVM编译技术应用分析

吴建明wujianming_110117 2742

LLVM MC 简介

1. 整体介绍LLVM MC (machine code) 层位于LLVM的底层,主要功能是负责汇编 (assembly)、反汇编 (disassembly)、以及生成二进制文件。作为LLVM的子项目,可以通过llvm-mc、llvm-objudump等工具直接操纵MC层。LLVM MC 的核心是引入了新的'MCInst'类来表示一个带有操作数的指令,这与代码生成器现有的指令概念'MachineI...

LF_AI的博客 1182

LLVM MC layer框架说明

LLVM MC(machine code) 层是整个LLVM low level 较为底层一层,主要功能是负责汇编asm,反汇编disassembly以及生成obj 和汇编功能。不管是输入类型是什么,首先第一步就需要将其输入转换到MCInst,MCInst为MC layer层对指令抽象统一处理,是MC层整个处理都是围绕MCInst进行处理。具体各个层解释会有详细说明,后续会根据AMDGPU 后端详细说明各个步骤过程。上述文档说明了MC层各个部件,但是缺乏从整体角度进行说明。

weixin_42730667的博客 2029

llvm学习笔记

基础知识 一个编译器通常是由前端和后端组成,后端负责特定语言的任务,读取源文件并将计算语义分析表示,通常是带注释的抽象语法树(AST)。后端从前端的结果创建优化机器码。 前端通常执行的任务: 词法分析器(Lexical analyzer简称Lexer)读取源文件并生成一个令牌流。 解析器从令牌流创建一个AST。 语法分析器向AST添加语义信息。 代码生成器从AST生成一个中间表示(IR)。 中间表示是后端接口。后端执行的任务: 后端在IR上执行与目标无关的优化。 为IR代码选择指令。 之后

weixin_42730667的博客 1570

LLVM基本概念入门

LLVM基本概念入门_c/c++_SiberiaBear的专栏-CSDN博客​LLVM目前的更新很活跃,请注意跟踪项目最新变更。

luoganttcc的博客 1577

告别NEDC!手把手教你将CLTC/WLTP等最新工况文件导入AVL Cruise(附资源包)

本文详细指导如何将CLTC、WLTP等最新工况文件导入AVL Cruise软件,替代传统的NEDC工况。从资源获取、文件预处理到分步导入指南,再到常见问题排查,帮助工程师高效完成汽车仿真性能评估。附赠全球主流工况文件资源包,助力精准仿真分析。

weixin_30374009的博客 465

window下rust的安装

1网络问题(是当前网络不佳,还是资源依赖不存在了;从网上下载项目构建后,发生了错误;百度后还是觉得要重新安装好vc++才行,避免后面又遇到一些坑;参考:https://www.jianshu.com/p/718626d561ce。观察到安装界面的rustup路径和和cargo已经发生改变;通过CARGO_HOME指定cargo的安装过目录。通过RUST_HOME指定rustup的安装目录。安装官网的示例教程,新建一个demo。Cargo run的时候报错了;重复之前的步骤安装即可;最后检查是否安装成功了;

qq_21687123的博客 3587

AD9026芯片开发实战指南:从硬件配置到射频校准

本文为AD9026芯片开发实战指南,详细解析了从硬件设计、电源时钟配置、SPI初始化到多芯片同步与JESD204高速链路建立的完整流程。重点探讨了射频校准技术,包括初始化校准与跟踪校准,以保障5G、MIMO等现代通信系统所需的射频性能。旨在帮助开发者系统掌握这颗高性能射频收发器的应用,规避常见设计陷阱。

tomato的博客 859

Honeywell EPKS 核心功能块组态与执行调度实战解析

本文深入解析Honeywell EPKS系统的核心功能块组态与执行调度技术,涵盖控制模块(CM)、顺序控制模块(SCM)和输入输出模块(IOM)的配置方法。通过实战案例分享执行顺序(ORDERINCM)和CEE执行周期的优化策略,帮助工程师提升工业自动化系统的控制精度和运行效率。

weixin_28724319的博客 418

LLVM是如何编译指令的

本文将会通过一条指令在LLVM中经过不同阶段的变化,从源程序语言中的语义结构到成为机器二进制码来研究LLVM的工作原理。 本文不会介绍LLVM是如何工作的,这需要理解LLVM的设计以及code以及各种细节。 输入代码 我们从一段C代码开始探险,如下: int foo(int aa, int bb, int cc) { int sum = aa + bb; return sum / cc; } 本文将会重点关注除法操作。 Clang Clang是作为LLVM的前端使用的,负责将C,C++,以及Obj

Keep Fighting! 1277

RAG开源框架深度评测:从RAGFlow到Dify的实战选型指南

本文深度评测了主流RAG开源框架(RAGFlow、Dify、WeKnora)的核心能力与实战表现,提供企业级选型指南。重点对比了文档解析、检索性能和生产部署等关键指标,揭示RAGFlow在复杂文档处理、Dify在低代码开发、WeKnora在腾讯生态集成的差异化优势,并给出技术选型决策树与成本优化方案。

weixin_29294597的博客 835

html代码生成器_LLVM 目标无关代码生成器(第四章)

本文是一篇译文,翻译自:https://llvm.org/docs/CodeGenerator.html​llvm.org如有问题,敬请指出。转载需注明出处,若需相关专业翻译服务,可联系我。本文目录第一章 介绍P2Tree:LLVM 目标无关代码生成器(第一章)​zhuanlan.zhihu.com第二章:目标描述类P2Tree:LLVM 目标无关代码生成器(第二章)​zhuanlan.zhihu...

weixin_39565332的博客 228

A B C三个气象站的小波分析结果解读

在小波分析的过程中,信号的不同频率分量会在不同的尺度上显现,而纵轴上的数值表示信号在相应尺度上的强度或能量。2. **小波方差的横轴(水平轴)**:横轴上的尺度表示用于分析的小波函数的尺度。1. **共同趋势:** 在所有三个点的小波方差图中,随着尺度的增加,方差逐渐增大,尤其是在较大的时间尺度上。3. **尺度30的特殊性:** 在所有点的小波方差图中,尺度30似乎是一个特殊的点,对应着一个较长的时间尺度上的波动或变化。2. **方差的大小:** 方差的大小反映了在相应尺度下信号的波动强度。

weixin_44259522的博客 865

NXP ChessDE的安装和激活

如果客户申请的是试用版,那么一份为期 30 天的 License 将会发送申请人的账号或邮箱中,客户使用该文件进行安装即可。② 将“VENDOR snpslmd /path/to/snpslmd”中的“/path/to/snpslmd”替换成 snpslmd.exe 实际存放路径(位于 SCL 安装目录下的 win32\bin 文件夹中,默认安装的情况下就是“VENDOR snpslmd C:\Synopsys\SCL\<version>\win32\bin\snpslmd.exe”)。

weixin_47351160的博客 2051

/bin/sh: 1: llvm-mc: not found

如果是ubuntu的话,直接安装llvm就行了。

whisper211的博客 337

告别龟速下载!保姆级教程:用离线包5分钟搞定Arduino IDE的STM32开发环境(附最新库文件)

本文提供了一套完整的Arduino IDE离线配置方案,帮助开发者5分钟快速搭建STM32开发环境。通过详细的板支持包安装指南、文件校验方法和常见问题解决方案,彻底解决GitHub下载慢的问题,提升开发效率。

weixin_26802933的博客 375

Rust安装(windows)

windows安装Rust开发环境指南 Rust的安装非常简单,官网下载安装包双击就能安装,但是在windows上使用总是能遇到一些问题,今天我们就来踩踩坑。 设置安装路径 当你安装Rust的时候会发现没法选安装路径,对于强迫症来说,还没开始就劝退了。其实Rust是可以执行安装路径的,只不过需要通过环境变量来指定。首先说怎么操作,后面再看为什么。 Rust需要安装两个东西,一个是rustup,一个是cargo。所以你需要设置两个环境变量来分别指定他们的安装目录。 通过RUST_HOME指定rustup的安.

陈戏猿 2万+

【100%通过率】2024华为OD机试真题E卷 C++ 实现【栈数据合并/空栈压数】

向一个空栈压入正整数,每当压入一个整数时,执行以下规则(设: 栈顶至栈底整数依次编号为n1、n2...nx, n1为最新压入的整数)

MISAYAONE的博客 1555

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

[转]LLVM MC Project

Intro to the LLVM MC Project The LLVM Machine Code (aka MC) sub-project of LLVM was created to solve a number of problems in the realm of assembly, disassembly, object file format handling, and a num...

weixin_30617737的博客 473

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

数据库与开源编译器框架LLVM

文章目录1.开源编译器框架LLVM2.LLVM如何在数据库中使用?3.PG中的JIT 1.开源编译器框架LLVM 2.LLVM如何在数据库中使用? 3.PG中的JIT 参考:为什么编译原理被称为龙书?,有说llvmJIT对SQL解析优化提升PG查询性能数倍,SQL解析本身消耗占比不高吧,能有这么高提升?,作为编译优化技术代表的开源编译器框架LLVM,如何在数据库中应用?,PgSQL · 特性分析 · 浅析PostgreSQL 中的JIT,JIT 在数据仓库中的应用价值 ...

喜欢打篮球的普通人 3331

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

LLVM中指令的一生

原作:http://eli.thegreenplace.net/2012/11/24/life-of-an-instruction-in-llvm/ 作者:Eli Bendersky LLVM是一个复杂的软件。追求理解它如何工作的人有多条途径,但没有一条是简单的。我最近深入了解了我之前不熟悉的LLVM的某些领域, 本文是该探索的结果之一。 这里我想做的是跟踪一条指令在经过LLVM的多个编译

wuhui_gdnt的专栏 1万+

Educational Codeforces Round 81 (Rated for Div. 2)

AAA 题意: 有一个荧幕,荧幕可以显示若干数字,每个数字可由几段构成,现在给你nnn段,问你显示的数字最多可以是多大。 思路 : 要想使得数字尽量大,我们要使得这个数字的位数尽量多,在这个基础上在使得高位数字尽量大。2段1,3段7,4段11,5段71,6段111,7段711…可以发现偶数段有n2\dfrac{n}{2}2n​个1,奇数段有一个7和n2−1\dfrac{n}{2}-12n​−1个1...

一身清贫怎敢入繁华 453
上一篇: Instruction Relationship Framework in LLVM
下一篇: Introduction to load elimination in the GVN pass
「已注销」
博客等级 码龄11年 2粉丝 18原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值