一、Linux编译过程 预处理->编译->汇编->链接 二、预处理 作用: 宏展开 头文件包含 条件编译 布局控制,如#pragma;添加行号,方便后期问题查错。 编译命令 gcc -E *.c -o *.i 三、编译 作用: 将预处理生成的代码进行词法、语法与语义进行解析,生成汇编代码。 命令: ...
分类:
系统相关 时间:
2020-03-29 12:47:57
阅读次数:
78
动态开点线段树+dp。 题目转换成求$x_i$ include include include include include include include include include include include // include include include pragma GCC ...
分类:
其他好文 时间:
2020-03-29 11:02:31
阅读次数:
49
我们传统的Physical DRC Signoff的步骤是怎么样的呢?首先,从ICC2中写出GDS文件。然后,merge standard cell,macro 等gds。再然后,用Physical Signoff 工具check DRC。最后,将DRC结果导入ICC2中分析。 为什么我们的Phys ...
分类:
其他好文 时间:
2020-03-28 16:18:12
阅读次数:
143
(js中的MacroTask) 1. Rendering never happens while the engine executes a task. Doesn’t matter if the task takes a long time. Changes to DOM are painted ...
分类:
系统相关 时间:
2020-03-27 11:10:07
阅读次数:
101
Portal Portal1: "Luogu" Solution 模拟,先找到在读入字符串内出现次数最多的字符,记录个数,然后以 $2$ 为指数在现有长度上递增,就可以算出答案。 但是 会溢出,所以要判断一下,如`mx + mx pragma GCC optimize(2) //不知道为什么,不开会 ...
分类:
其他好文 时间:
2020-03-27 11:06:17
阅读次数:
57
LNode.h #pragma once class LNode { friend class LinkStack; int data; LNode* next; }; LinkStack.h #pragma once #include"LNode.h" #include<iostream> usi ...
分类:
其他好文 时间:
2020-03-26 12:14:15
阅读次数:
73
在一个项目文件夹下面建立如图所示的文件和文件夹 include文件夹下放.h文件,内容为声明一个函数; 1 #pragma once 2 3 void helloslam(); src下面放源码文件,对应的内容如下 1 /*sayHello.cpp文件内容*/ 2 3 #include<sayHel ...
分类:
其他好文 时间:
2020-03-24 12:54:42
阅读次数:
75
中文题 想法: 首先第一个要解决的问题就是在 n 个砝码中取 m 个 (因为数据量不是很大,我们可以考虑直接暴力) 当已知 m 个砝码的时候,求有多少中搭配的方式 (这个可以采取dp的方式) #pragma GCC optimize(3,"Ofast","inline")//O3优化 #pragma ...
分类:
其他好文 时间:
2020-03-23 20:24:33
阅读次数:
63
[toc] js 单线程模型 JavaScript 是单线程、非阻塞的一种语言,只有一个主线程,同时只能执行一个任务。 js 使用单线程是为了简单化 js 中的栈、堆和消息队列 栈 存放的是调用函数的记录——调用帧 堆 存放的是对象 消息队列 + 包含待处理消息的队列 + 每个消息都关联了一个回调函 ...
分类:
其他好文 时间:
2020-03-22 14:07:15
阅读次数:
86
如果需要在html页面上设置不缓存,这在<head>标签中加入如下语句: 1 <meta http-equiv="pragma" content="no-cache"> 2 <meta http-equiv="cache-control" content="no-cache"> 3 <meta ht ...
分类:
其他好文 时间:
2020-03-22 10:54:57
阅读次数:
61