摘要: 3.1 A historical perspective 3.2 Program encodings gcc -Og -o p p1.c p2.c -Og instructs the compiler to apply a level of optimization that yields mach 阅读全文
posted @ 2018-03-28 23:17 孤灯下的守护者 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 1.9.1 Amdahl's Law Consider a system in which executing some application requires time T_old.Suppose some part of the system requires a fraction x of 阅读全文
posted @ 2018-03-28 23:15 孤灯下的守护者 阅读(156) 评论(0) 推荐(0) 编辑
摘要: :ma or :mA // 设置 a 为标签 小写字母 局域标签,大写是全局 // :a or :A // 跳转到标签处 :deletemarks :marks 分别为删除和显示所有标签 :help mark-motions 阅读全文
posted @ 2017-09-23 22:33 孤灯下的守护者 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 18 Visiting with the new c++ standard ## C++11 Features Revisited# # New Types c++11 adds the long long and unsigned long long types to support 64-bit 阅读全文
posted @ 2017-09-12 20:08 孤灯下的守护者 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Chapter 17 Input,Output,and Files ## An Overview of C++ Input and Output# # Streams and Buffers An input stream needs two connections, one at end. The 阅读全文
posted @ 2017-09-12 20:07 孤灯下的守护者 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Chapter 16 # string class Constructors (Page 952) string(const char *s) string(size_type n, char c) string(const string &str) string() string(const ch 阅读全文
posted @ 2017-09-12 20:06 孤灯下的守护者 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 使用命令: info ed 查看用法,摘要如下: ed [filename] 进入,filename 不写则写新文件; P:(大写) 显示提示符; p:(小写) 打印当前行,如输入 ‘,p’(不含引号) 显示全文; 输入数字来选择要编辑行; a: 追加,m 移动,如: 5m8 即:5行移到8行; c 阅读全文
posted @ 2017-06-15 07:22 孤灯下的守护者 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: 如:数组 array[i][j][k]中的 第array[r][s][t]个元素: 内存计算公式: (起始地址) array + L(r*j*k + s*k + t) L为类型的字节数 如 int类型 数组元素为4个字节 char 为 1 个字节 另 二维数组的公式: array[i][j] 中的 阅读全文
posted @ 2017-01-05 07:18 孤灯下的守护者 阅读(3168) 评论(0) 推荐(0) 编辑
摘要: 3.2 gcc -Og -S mstore.c > mstore.s //assemble form AT&T style gcc -Og -S -masm=intel mstore.c //assemble of intel style gcc -Og -c mstore.c > mstore.o 阅读全文
posted @ 2016-11-30 00:25 孤灯下的守护者 阅读(149) 评论(0) 推荐(0) 编辑
摘要: x/14xb filename.o //display('x') 14 hex-formatted bytes 阅读全文
posted @ 2016-11-30 00:21 孤灯下的守护者 阅读(109) 评论(0) 推荐(0) 编辑