- 博客(17)
- 收藏
- 关注
转载 WORD 是2Bytes还是4bytes?
1. 对于嵌入式底层人员来说1 word大小跟cpu结构有关32位cpu,1word = 4 bytes64位cpu,1 word = 8 bytesHalf-Word:32位cpu,半字的长度为16位,与8位/16位处理器体系结构中字的长度一致。字节(Byte):在8位/16位/32位处理器体系结构中,字节的长度均为8位。在arm920t datashee
2016-10-26 16:38:03 15387
转载 Latex数学公式中的空格
两个quad空格a \qquad b两个m的宽度quad空格a \quad b一个m的宽度大空格a\ b1/3m宽度中等空格a\;b2/7m宽度小空格a\,b1/6m宽度没有空格ab
2016-08-18 22:02:05 606
转载 How to correctly use the extern keyword in C
152 down vote accepted "extern" changes the linkage. With the keyword, the function / variable is assumed to be available somewhere else and the resolving is deferred to the linker.
2016-08-08 21:09:36 553
转载 Unable to negotiate with legacyhost: no matching key exchange method found.
OpenSSH implements all of the cryptographic algorithms needed for compatibility with standards-compliant SSH implementations, but since some of the older algorithms have been found to be weak, not a
2016-08-02 14:47:48 4779
转载 Slurm Quick Start Tutorial
Resource sharing on a supercomputer dedicated to technical and/or scientific computing is often organized by a piece of software called a resource manager or job scheduler. Users submit jobs, which ar
2016-04-08 20:40:54 1142
转载 Debugging Under Unix: gdb Tutorial
IntroductionThis tutorial was originally written for CS 342 at Washington University. It is still maintained by Andrew Gilpin.Who should read this?This tutorial is written to help a programmer
2016-03-27 14:57:01 455
转载 C语言中内存分配
在任何程序设计环境及语言中,内存管理都十分重要。在目前的计算机系统或嵌入式系统中,内存资源仍然是有限的。因此在程序设计中,有效地管理内存资源是程序员首先考虑的问题。第1节主要介绍内存管理基本概念,重点介绍C程序中内存的分配,以及C语言编译后的可执行程序的存储结构和运行结构,同时还介绍了堆空间和栈空间的用途及区别。第2节主要介绍C语言中内存分配及释放函数、函数的功能,以及如何调用这些
2016-03-27 10:01:38 252
转载 堆和栈的区别(转过无数次的文章)
一、预备知识—程序的内存分配 一个由C/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其 操作方式类似于数据结构中的栈。 2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回 收 。注意它与数据结构中的堆是两
2016-03-26 22:34:24 219
转载 stderr和stdout详细解说
今天又查了一下fprintf,其中对第一个参数stderr特别感兴趣。int fprintf(FILE *stream,char *format,[argument]);在此之前先区分一下:printf,sprintf,fprintf。1,printf就是标准输出,在屏幕上打印出一段字符串来。2,sprintf就是把格式化的数据写入到某个字符串中。返回值字符串的长度
2016-03-24 22:36:28 1270
转载 Install Open MPI in Ubuntu
Open MPI is an open source MPI-2 implementation that is developed and maintained by a consortium of academic, research, and industry partners. Open MPI is therefore able to combine the expertise,
2016-03-22 15:23:41 645
转载 Vim 复制粘帖格式错乱问题的解决办法
有时候,复制文本(尤其是代码)到 Vim,会出现格式错乱的问题。看样子,应该是自动缩进惹得祸。本文不去深究原因,直接给出解决方法。1. paste 模式运行如下命令,进入 paste 模式::set paste进入 paste 模式后,按 i 键进入插入模式,然后再粘帖,文本格式不会错乱了。但粘帖后还需要按 进入普通模式并执行如下命令结束 paste 模式:
2016-03-18 14:44:30 864
转载 OpenSSL: print X and Y of EC_POINT
/*QUESTION*/This is my code:EC_KEY *eckey = EC_KEY_new();EC_KEY_generate_key(eckey);const EC_POINT *pub = EC_KEY_get0_public_key(eckey);printf("%s", pub->X);I'm getting an error that say
2016-03-17 16:57:20 3629
转载 OpenSSL BN_CTX usage
14down voteHere I am answering my own question. I guess it happens all the time in SO.BIGNUM in OpenSSL is a complicated structure that holds an arbitrarily big number, and hence creat
2016-03-14 20:24:53 1243
转载 关于typedef的用法总结
转载自:http://blog.csdn.net/wangqiulin123456/article/details/8284939基本定义:typedef为C语言的关键字,作用是为一种数据类型定义一个新名字。这里的数据类型包括内部数据类型(int,char等)和自定义的数据类型(struct等)。 在编程中使用typedef目的一般有两个,一个是给变量一个易记且意义明确的新
2016-03-13 20:54:13 235
转载 Vim基础知识
输入vimtutor进入文本教程1.1 控制方向 ^ k j v1.2 进入和退出进入vim 文本名不保存推出退出::q!保存退出:wq删除字符x插入文本i1.3 删除和撤销删除[number] d object 或者 d [number] object如:dw 光标处删除到单词末尾
2016-03-09 14:25:56 242
转载 c语言结构体用法
结构(struct) 结构是由基本数据类型构成的、并用一个标识符来命名的各种变量的组合。 结构中可以使用不同的数据类型。 1. 结构说明和结构变量定义 在Turbo C中, 结构也是一种数据类型, 可以使用结构变量, 因此, 象其它 类型的变量一样, 在使用结构变量时要先对其定义。 定义结构变量的一般格式为:
2016-03-08 21:55:00 373
转载 How to Install GMP in Ubuntu
转载自:http://www.ehow.com/how_8328719_install-gmp-ubuntu.html,Allen BetheaAlthough Ubuntu ships with its own implementation of the GNU Multiple Precision Arithmetic Library already installed, if you
2016-03-05 14:27:11 895
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人