- 博客(8)
- 资源 (5)
- 收藏
- 关注
原创 Linux 中的locate命令是怎样保持更新的
一句话,就是通过cron每天来跑updatedb这个命令。 以下是我的系统中,anacron管理的更新locate所需要的索引的脚步:nodevs1=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" { print $2 }')/usr/bin/updatedb -f "$nodevs1"
2017-11-30 14:13:00 3209
转载 Google Protocol Buffer的编解码原理
简单来说,pb就是讲结构化的数据可以序列号和反序列化,而且速度比xml快。pb的序列化数据的编码格式是 Base 128 Varints,结构中的每一个field对应序列号之后的一对键值对。 具体的key是怎么编码,value是怎么编码的,请参见以下链接。ref: https://developers.google.com/protocol-buffers/docs/encoding ht
2017-11-28 08:46:28 263
原创 怎样获得你的系统中使用的C++标准库的版本
使用locate找到你系统中有的libstdc++.so文件,然后看最后两个数字,然后在下面的网址中去查找就可以了。 例如我的系统的locate输出为:$ locate libstdc++.so/xx/libstdc++.so.6/xx/libstdc++.so.6.0.13/sometool/linux-x86-64/shlib/libstdc++.so.5/usr/lib/libstd
2017-11-22 16:14:35 9062
原创 怎样知道你的应用程序依赖于那个版本的GCC和那个版本的ABI
其实很简单,让我们反着来推一下。 我们先看看一短源代码是如果编译的,#include <iostream>int main(){ std::cout << "hello" << std::endl; return 0; }编译:%g++ hello.cc -o hello.out使用ldd查看它依赖的C++库:%ldd hello.out libstdc++.so.5 =>
2017-11-22 15:54:31 3481
翻译 如何检查你的应用程序的ABI兼容性
首先要获得你share出去的lib的符号表: $ (find . -name '*.a'|xargs nm -f posix; find . -name '*.so' | xargs nm -f posix -D)|cut -f1 -d' '|LANG=C sort -u > all_symbols $ grep '^_Z' all_symbols | c++filt|sort > demang
2017-11-22 15:34:04 2161
转载 mongo::client::initialize() cause crash
在使用monod的C++ driver时,使用**mongo::client::initialize()** 方法会导致应用程序crash。首先要明确一下:mongo::client::initialize()方法是legacy driver的方法,不推荐和3.X的driver一起使用。C++ driver是依赖于boost的mongo::client::initiali
2017-11-22 15:26:05 470
转载 ABI vs API
application programming interfaces (APIs), which similarly define interfaces between program components, but at the source code level. 是源代码级别的,每次都要编译ABIs (which may or may not be officially standardiz
2017-11-22 15:07:56 283
原创 新版的Linux中的free命令的输出解释
free是用来查看当前系统的内存使用情况的。 在解释之前,先要熟悉几个概念。 共享链接库:它的意思是一些共享的库文件,不需要每个进程都加载到内存中,每个进程可以共享它们。从而达到节省内存的目的。比如libc.然后是Cache Pages和Buffer,以下是从Redhat的网站上抓出来的。 这里需要注意一点的是:它们的系统来使用的,在新版本的free中是used列中,是没有计算出来的,原因就是
2017-11-14 09:53:37 6595 1
Soft-Test.zip
2021-01-20
SEMI E37-0298 HIGH-SPEED SECS MESSAGE SERVICES (HSMS) GENERIC.pdf
2021-01-20
RF engineering basic concepts the Smith chart.pdf
2020-05-05
Waveform Generation Language from Fluence Technology, Inc
2020-04-29
Standard Test Interface Language (STIL) for Digital Test Vectors原版
2020-04-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人