自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 GEM5集成NVMain

下载NVMain NVMain下载指南hg clone https://bitbucket.org/mrp5060/nvmain/修改hg配置文件zzz@zzz:~/gem5$ vim ~/.hgrc修改如下[extensions]mq =[ui]username = 你的bitbucket的邮箱进入gem5的目录下面更新gem5zzz@zzz:~/gem5$ hg update 11620

2016-11-28 16:59:59 1479 1

原创 GEM5安装

安装环境:Ubuntu 16.04lts安装库文件sudo apt-get install mercurial scons swig g++ protobuf-compiler libprotobuf-dev python-dev libgoogle-perftools-dev m4下载GEM5gem5下载指南hg clone http://repo.gem5.org/gem5编译gem5框架zzz

2016-11-28 15:48:03 942

原创 脚本

获取网卡名ifconfig -a | cut -d' ' -f1 | sed '/^$/d'获取指定网卡的ip地址(eth0)ifconfig eth0 | grep "inet addr:" | awk '{print $2}'| cut -c 6-获取指定网卡的掩码(eth0)ifconfig eth0 | grep "inet addr:" | awk '{print $4}'| cut -c

2016-07-12 14:41:20 327

原创 多网卡下获取网卡名称

import osimport stringinterfacename = "eth0"str1 = "ifconfig | cut -d' ' -f1 | sed '/^$/d'"str2 = "ifconfig " +interfacename+" | grep \"inet addr:\" | awk '{print $2}' | cut -c 6-"str3 = "ifconfig

2016-07-11 15:06:03 1155

原创 docker安装

之前用apt-get install docker 出现The program 'docker' is currently not installed. You can install it by typing:sudo apt-get install docke`改用apt-get install docker.io

2016-07-04 15:40:42 2188

转载 (ZT)Java中equals和==的区别

转自http://www.cnblogs.com/zhxhdean/archive/2011/03/25/1995431.html java中的数据类型,可分为两类: 1.基本数据类型,也称原始数据类型。byte,short,char,int,long,float,double,boolean 他们之间的比较,应用双等号(==),比较的是他们的值。 2.复合数据类型(类)

2015-11-24 17:43:25 299

原创 编译SPECCPU2006

mount -t iso9660 -o ro,exec /dev/cdrom /mnt然后安装到指定的目录中sh install.sh -d /home/cc/spec最后运行shrc脚本source shrc将config目录下的 Example-linux64-amd64-gcc41.cfg配置文件复制下,命名为gcc41.cfg,由于gem5运行spec需要静态可执行文件,所以将gcc41.c

2015-05-29 11:21:51 6116 5

原创 引用与指针的区别

引用与指针的区别: 1、引用必须在声明时将其初始化,指针可以先声明再赋值。int rats = 101;int &rodents = rats;//rodents a reference int rat;int &rodent;rodent = rat;//NO,you can't do this2、引用更接近const指针,一旦与某个变量关联起来,就将一直效忠于它。

2015-05-13 11:09:47 281

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除