首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏ts流分析

    hysAnalyser --- 关于 DVB (P)SI sections 周期的说明

    of the BAT will be transmitted at least every 10 s, if present;c) all sections of the SDT for the actual will be transmitted at least every 2 s;f) all sections of the EIT Present/Following Table for other TSs will be transmitted at least every 10 s, if present;g) all sections of the EIT Schedule Table for of the NIT will be transmitted at least every 10 s;b) all sections of the BAT will be transmitted at least every 10 s, if present;c) all sections of the SDT for the actual multiplex will be transmitted

    21010编辑于 2025-11-26
  • 来自专栏数据技巧

    你知道Power Query中的sections命令吗?

    有的,这个命令就是“#sections”,这个是什么命令呢?返回一个记录格式,并且列出所有自定义的查询名称及内容的记录。 这个有什么用呢?有没有发现在很多函数中的参数需要选择,如图 ?

    1.2K00发布于 2020-03-24
  • 来自专栏懒人开发

    (10.5)James Stewart Calculus 5th Edition:Conic Sections

    ---- Conic Sections 圆锥部分(圆锥曲线) 这里, parabolas 抛物线 (相似流星锤,相似波...) ellipses 椭圆 hyperbolas 双曲线 (超级流星锤,超级波

    49020发布于 2018-09-12
  • 来自专栏懒人开发

    (10.6)James Stewart Calculus 5th Edition:Conic Sections in Polar Coordinates

    Conic Sections in Polar Coordinates 极坐标下的圆锥曲线 上一节已经了解,圆锥曲线的一些特性 这里,我们来看一个定义: 我们发现(其实,高中就学过...)

    61720发布于 2018-09-12
  • 来自专栏desperate633

    资源竞速(Race Conditions)和临界区(Critical Sections)临界区临界区的资源竞速避免资源竞速临界区的吞吐量

    critical section是每个线程中访问临界资源的那段代码,不论是硬件临界资源,还是软件临界资源,多个线程必须互斥地对它进行访问。 资源竞速就是可能在由于在访问临界区时没有互斥的访问而导致的特殊情况。

    1.4K00发布于 2018-08-22
  • 来自专栏homura的博客

    mold源码阅读六 section size优化

    gc_sections // Garbage-collect unreachable sections. if (ctx.arg.gc_sections) gc_sections(ctx); template read-only sections. if (ctx.arg.icf) icf_sections(ctx); template <typename E> void icf_sections(Context gather_sections // Prepare for the propagation rounds. std::vector<InputSection<E> *> sections = gather_sections return sections; } 这里出现了三个vector,先来理清对应的作用 num_sections:每个obj中icf_eligible的input sections数量 section_indices :由前一个section_indices和num_sections的值决定,其实是用于标记每个位置的objs的input section的起始在最终的sections中的坐标 sections:初始化的容量是其实是

    83860编辑于 2023-05-10
  • 来自专栏python3

    python解析elf文件

    elfhdr['e_shnum'] print " Section header string table index: %d"%elfhdr['e_shstrndx'] def display_sections (elffile):     verify_elf(elffile)     sections = []     global elfhdr     sec_start = elfhdr['e_shoff [i]['sh_type'] & 0x7],sections[i]['sh_addr'],sections[i]['sh_addralign'])         print "      %x                   %x       %s        %d     %d     %x" %(sections[i]['sh_size'],sections[i]['sh_entsize'],flagsstr,sections [i]['sh_link'],sections[i]['sh_info'],sections[i]['sh_addralign'])     f.close() def get_name(f,offset

    2.9K40发布于 2020-01-10
  • 来自专栏AI机器学习与深度学习算法

    PyTorch入门笔记-分割split函数

    split torch.split(input, split_size_or_sections, dim = 0) 函数会将输入张量(input)沿着指定维度(dim)分割成特定数量的张量块,并返回元素为张量块的元素 tensor(Tensor)- 待分割的输入张量,此处的 tensor 参数和 torch.chunk 函数中的 input 参数类似,只需要注意使用关键字参数时候的参数名 split_size_or_sections 指定为 int 时 当传入 torch.split 函数中的 split_size_or_sections 参数为整型时(int),torch.split 函数和 torch.chunk 函数所实现的功能一样 ,torch.split 函数中的 split_size_or_sections 参数和 torch.chunk 函数中的 chunks 参数等价。 使用 torch.split 函数,只需要为 split_size_or_sections 参数传入 [1, 2] 列表即可。

    9K10发布于 2021-02-26
  • 来自专栏QB杂货铺

    使用--gc-section编译选项减小程序体积

    这种功能,讲道理编译器肯定要支持的,于是搜了一下,果然是有个编译选项 需要在编译的时候,加入-ffunction-sections, -fdata-sections 选项,在链接的时候,加入--gc-sections 选项 大概的意思就是,编译的时候,把每个函数作为一个section,每个数据(应该是指全局变量之类的吧)也作为一个section,这样链接的时候,--gc-sections会把没用到的section丢弃掉 如果不加-ffunction-sections选项,则默认似乎是每个源文件为一个section进行链接,这样子只要这个文件中用到了一个函数,那么所有的函数都会被链接进来。 所以编译器认为所有的函数都没用,于是全部丢弃了 赶紧试试,果然, 在lds文件中加上 ENTRY(_start) 之后,就好了,编译出来查看map文件,确实把没用到的函数丢弃了 但还有一个问题,就是不能加上 -fdata-sections ,加上就报错,只能用-ffunction-sections,这个暂时没解决 想起以前用STM32的时候,keil(MDK)就提供了一个选项,Options->C/C++ 中勾选上 “One ELF

    1.9K30发布于 2019-12-27
  • 来自专栏开源优测

    [快学Python3]INI文件读写

    ConfigParser 读取 read(filename) 读取ini文件内容 sections() 获取所有的section,并以列表的形式返回 options(sections) 获取指定section # 下面开始我们来把刚才的ini文件读出来看看 config.read("iniConfig.ini") # 获取它的所有section sections = config.sections() print(sections) # 获取section下所有的options for sec in sections: options = config.options(sec) print(options) # 根据sections和options获取对应的value值 for sec in sections: for option in config.options(sec): print("[%s] %s=%s "

    2.9K60发布于 2018-04-09
  • 来自专栏技术让梦想更伟大

    MDK Keil使用GCC编译图文详解

    1.配置CC编译规则 注意勾选一下选项,填写规则 Misc Controls : -mcpu=cortex-m3 -mthumb -fdata-sections -ffunction-sections注 -fdata-sections和-ffunction-sections和下文连接规则一起说 2.配置Assembler编译规则 类似前一项 Misc Controls : -mcpu=cortex-m3 -wl, 表示后面的参数 --gc-sections 传递给链接器 3. -fdata-sections和-ffunction-sections和–gc-sections的说明如下 4.stm32f10x_flash_extsram.ld内容 /* Default linker management sub-script for FLASH mode */ /* Sections Definitions */ SECTIONS { /* for Cortex devices

    3.3K30编辑于 2022-12-22
  • 【CodeForces】66B - Petya and Countryside(递增子串变形题,模拟)

    This rectangle is divided into n equal square sections. The garden is very unusual as each of the square sections possesses its own fixed height and due to At that, the water from each watered section will flow into its neighbouring sections if their height over all the sections, except the ones with the height of 4. The second line contains n positive integers which are the height of the sections.

    24610编辑于 2025-08-26
  • 来自专栏开源优测

    [快学Python3]INI文件读写

    ConfigParser 读取 read(filename) 读取ini文件内容 sections() 获取所有的section,并以列表的形式返回 options(sections) 获取指定section # 下面开始我们来把刚才的ini文件读出来看看 config.read("iniConfig.ini") # 获取它的所有section sections = config.sections() print(sections) # 获取section下所有的options for sec in sections: options = config.options(sec) print(options) # 根据sections和options获取对应的value值 for sec in sections: for option in config.options(sec): print("[%s] %s=%s "

    1.7K70发布于 2018-04-09
  • 来自专栏开源优测

    [快学Python3]INI文件读写

    ConfigParser 读取 read(filename) 读取ini文件内容 sections() 获取所有的section,并以列表的形式返回 options(sections) 获取指定section # 下面开始我们来把刚才的ini文件读出来看看 config.read("iniConfig.ini") # 获取它的所有section sections = config.sections() print(sections) # 获取section下所有的options for sec in sections: options = config.options(sec) print(options) # 根据sections和options获取对应的value值 for sec in sections: for option in config.options(sec): print("[%s] %s=%s "

    1.8K90发布于 2018-04-09
  • 来自专栏全栈测试技术

    Python之configparser模块详解和使用

    def read_sections(self): print(f"1、获取所有的sections:{self.conf.sections()}")if __name__ = = "__main__": aa = Conf() aa.read_sections()结果为:D:\Python37\python.exe F:/python_study/conf.py1 、获取所有的sections:['mysqldb', 'mailinfo']4.3 获取所有的sections对应的options def read_options(self, s1, s2): self.conf.write(open(self.f, "w"))if __name__ == "__main__": aa = Conf() aa.read_sections() (self): print(f"1、获取所有的sections:{self.conf.sections()}") def read_options(self, s1, s2):

    1.1K90编辑于 2023-02-07
  • 来自专栏小锋学长生活大爆炸

    python读取ini配置的类封装

    self.cfgpath = cfgpath self.conf.read(cfgpath, encoding="utf-8") return self.conf.sections # 读取所有section到字典中 def prettySecsToDic(self): res_1 = {} res_2 = {} sections = self.conf.sections() for sec in sections: for key, val in self.conf.items(sec) ) # 追加模式写入 cfgpath = r'C:\Users\SXF\Desktop\config.ini' inicfg = IniCfg() sections = inicfg.readSectionItems(cfgpath) print(sections) content = inicfg.readOneSection('chaoji') print(content

    1.2K20发布于 2020-08-13
  • 来自专栏机器视觉全栈er

    pytorch的python API略读--tensor(四)

    torch.tensor_split: 将输入的tensor分解成多个tensor,用法如下: torch.tensor_split(input, indices_or_sections, dim=0) ) 这个函数的用法和torch.tensor_split(input, indices_or_sections, dim=2)等价。 (input, indices_or_sections, dim=1)。 这个函数等价于torch.tensor_split(input, indices_or_sections, dim=0)。 torch.split: 将tensor分成几个块,用法如下: torch.split(tensor, split_size_or_sections, dim=0) 如果split_size_or_sections

    47220编辑于 2022-07-04
  • 来自专栏这里只有VxWorks

    Tool之ld

    --no-strip-discarded Do not strip symbols in discarded sections -t, --trace Check section addresses for overlaps (default) --no-check-sections Do not check Remove unused sections (on some targets) --no-gc-sections Don't remove unused sections (default) --print-gc-sections List removed unused sections on stderr --no-print-gc-sections Do not list removed unused sections --hash-size=<NUMBER> Set default hash table size close

    1.3K20编辑于 2023-02-20
  • 来自专栏homura的博客

    mold源码阅读八 创建输出段

    之后会再讲解简单的命令行参数处理,下一期再讲对于输出chunk中的一些处理 create output sections // Create output sections for input sections . template <typename E> void create_output_sections(Context<E> &ctx) { Timer t(ctx, "create_output_sections to output sections for (ObjectFile<E> *file : ctx.objs) for (std::unique_ptr<InputSection<E>> (isec.get()); // Add output sections and mergeable sections to ctx.chunks std::vector<Chunk<E> *> vec obj中的这个属性是在ObjectFile::initialize_sections中设置的。而全局的z_execstack会在后面被用到,此时先不过多提及。

    36620编辑于 2023-10-22
  • 来自专栏全志嵌入式那些事

    全志XR系列 如何统计XRMCU的内存使用情况

    因此,GCC在编译时可以使用 -ffunction-sections和 -fdata-sections 将每个函数或符号创建为一个sections,其中每个sections名与function或data 而在链接阶段, -Wl,–gc-sections 指示链接器去掉不用的section(其中-wl, 表示后面的参数 -gc-sections 传递给链接器),这样就能减少最终的可执行程序的大小了。 Usage: map_parse_version: 1.0.4 map_parse_gcc.py xxx.map ================================= Memory Sections

    38210编辑于 2024-02-02
领券