真惨,想起前几天的没常识的我。因毕设需要现在又来恶补来了。有很多需要学的,包括计算机硬件基础和ubuntu的一些技巧。还要安装HotSpot。三个部分。
我原地升天了。在查芯片参数的时候,怎么也搞不到,感觉自己计算机基础实在太差了,计组操统啥的,就想了解一下计算机硬件结构。思来想去把自己笔记本拆了最合适。晚上吃完饭拆完发现,尴尬了翻来覆去只知道风扇电池内存条,坐在门口和高中前桌电话沟通拉着这个和非计算机专业的同学一起研究这都是些啥玩意。正在我气闷闷坐门口反思的时候,一师兄过来,看得出他的迟疑,但因为看到我可看到他了所以就还是过来了,我一边扯下耳机一边应付。
“你干啥呢?” “坐着……”
转念一想,不如套路一把?
赶紧加了一句“额坐着,难过……”
成功拉回了他都准备走人的脚步。然后接下来一通操作顺理成章,对着手机的渣像素拍的电脑拆了后壳的照片,搞清楚都有些什么玩意。以不想回我实验室的说法(就是不想和他同时出现因为实验室里有个贼烦人的猪蹄子会嘲讽我)被拉入他的实验室(我也不想去只想发呆但是向知识低头)然后上了一堂基础课。
结果?
我真不是计算机专业的,我含着眼泪出来了。
就认识到,原来我这个辣鸡程度,要比我昨天的认识的自己还要更辣鸡一点……
你以为这就完了吗?
在给我讲的时候他说这些都可以查得到的啊(内心极度不安我的搜索技能也太差了吧)比如这个CPU型号就这样就好了
我回宿舍关电脑发现,我的浏览器,众多打开的网页中,有一个我没有注意到的,清楚地写着我的电脑CPU芯片的一系列参数……我特么,为啥子我只看到了那个吹嘘自己芯片有多好打游戏有多快的那个!!!!
原地爆炸吧。
最惨的是什么,发现这接近三天的工作,对于这个实验来说,没太大的用处……就了解了很多硬件组成、参数意义和一些公司的发展史……我现在是血槽空了,脸上毫无波澜,心里简直滴血。啥都不想干了累了累了……
歇一会再奋斗,我要抠论文继续
1. 安装HotSpot
贼简单,官方网址HOW-TO:http://lava.cs.virginia.edu/HotSpot/HotSpot-HOWTO.htm
-
Download the HotSpot tar ball (HotSpot-6.0.tar.gz) 下载安装包,现在已经托管到github(https://github.com/uvahotspot/hotspot)上了。
-
Unzip and untar the file using the following commands 解压缩,手动就行我觉得明明手动更简单。
a) gunzip HotSpot-master.tar.gz
b) tar -xvf HotSpot-master.tar -
Go to the HotSpot installation directory 进入安装路径下,就是解压后的文件位置。
a) cd HotSpot-master/
-
For Linux/UNIX systems with BLAS/LAPACK libraries installed, uncomment the lines corresponding to your installation of the BLAS/LAPACK vendor libraries (see http://www.netlib.org/blas/faq.html#5) and set the path and compiler options corresponding to your library. This version of HotSpot has code integrated for Intel Math Kernel Library, AMD Core Math Library, Apple Velocity Engine and Sun Performance Library. Extending it to other vendors should be straightforward. For such an extension, apart from the user guide from those vendors, http://www.netlib.org/blas/blast-forum/cinterface.pdf might also be useful as it provides useful description of the C interface to BLAS.
这个意思是说,HotSpot已经包含了一些数学运算的库,如果自己已经安装了的话,需要更改编译路径等相关设置。 -
Build HotSpot
a) Under Linux/UNIX systems with GNU Make and GCC, type the following for compilation:make
b) To remove all the outputs of compilation, type ‘make clean’. Similarly, to remove the object files alone, type ‘make cleano’. To view the list of files HotSpot needs for proper working, type ‘make filelist’. To compile for debugging, use ‘make DEBUG=1’. Under a Linux/UNIX system, to compile for using with a profiler (e.g. gprof), use ‘make DEBUG=2’.
c) In principle, HotSpot could be build on any major platform since it is implemented in standard C. For detailed installation instructions for other platforms, please contact the authors. -
To remove all the outputs of compilation, type ‘make clean’ or ‘nmake /F Makefile.VC clean’ depending on whether it is a GCC/GNU Make system or a VC++/NMake system. Similarly, to remove the object files alone, type ‘make cleano’ or ‘nmake /F Makefile.VC cleano’. To view the list of files HotSpot needs for proper working, type ‘ma