自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

阿然的专栏

IT视界

  • 博客(6)
  • 资源 (25)
  • 收藏
  • 关注

原创 Linux gcc for 循环中 i=i++ 会造成死循环问题及 ++i / i++ 汇编分析

在把 Windows 程序移植到 Linux 时遇到了死循环,最后定位到了类似这种的语句 for (i = 0; i < 1; i = i++),别问我谁写的,为什么这么写(泪目!)。根据C语言的常识, i = i++ 应该等价于 i++, Windows 上确实是这样,但 Linux 不是,这应该是编译器差异造成的。--------------------------------------- 可 i 的分割线

2014-12-31 00:14:13 3736 6

原创 gcc/g++/make 编译信息带颜色输出

如果编译一个项目错误警告太多,非常不好找,所以非常希望输出信息可以带有颜色。可是 gcc 4.9.0 之前的版本并不支持,很多情况下是不能替换编译器的,比如使用交叉编译器,也可以使用 colorgcc,但我觉得不是特别好,需要配置,如果使用Makefile还要更改编译器设置,所以我自己动手写了一个,效果还可以,源码在github上: https://github.com/china

2014-12-23 12:00:07 11464 2

转载 gcc 编译参数 -fPIC 的详解和一些问题

ppc_85xx-gcc -shared -fPIC liberr.c -o liberr.so-fPIC 作用于编译阶段,告诉编译器产生与位置无关代码(Position-Independent Code),  则产生的代码中,没有绝对地址,全部使用相对地址,故而代码可以被加载器加载到内存的任意  位置,都可以正确的执行。这正是共享库所要求的,共享库被加载时,在内存的位置不是固定的

2014-12-15 15:01:33 25958

原创 Linux C 网络编程 - 获取本地 ip 地址,mac,通过域名获取对应的 ip

获取本地 ip 地址,mac,通过域名获取对应的 ip,是网络编程可能遇到的比较常见的操作了,所以总结如下(封装了3个函数),直接上代码:#include #include #include #include #include #include #include #include #include #include #include #define MAC_S

2014-12-11 20:15:03 9489

原创 InfoQ:开放物联网大会启动筹备,(前200名)免费报名参与

开放物联网大会2014,12月18日,北京国际会议中心,现可免费报名参与(前200名,优惠码 OIOT-KYZG-VIP 即时获得免费电子票),可惜是周四,不知道大家有没有兴趣呢?报名网址:http://www.openiotcon.com/index.html(注:优惠码来自开源中国)

2014-12-08 13:17:00 1858 5

转载 Linux 硬链接与软链接的区别

首先我们需要了解linux下硬链接以及软连接的基本概念.硬链接:新建的文件是已经存在的文件的一个别名,当原文件删除时,新建的文件仍然可以使用.软链接:也称为符号链接,新建的文件以“路径”的形式来表示另一个文件,和Windows的快捷方式十分相似,新建的软链接可以指向不存在的文件.下面详细介绍一下硬链接和软连接之间的区别.1. 硬链接和原来的文件没有什么区别,而且共享

2014-12-02 17:37:55 1303

C语言运算符优先级.docx

C语言运算符优先级

2017-03-01

MadEdit-Mod_0.3.7_x86_Green.7z

文本编辑器/16进制编辑器 MadEdit

2015-10-11

MadEdit-Mod_0.3.5_x86_Green.7z

文本编辑器/16进制编辑器 MadEdit

2015-09-18

Source Insight 3.X utf8 支持插件.zip

Source Insight 3.X utf8 支持插件,包含安装说明,完美解决查看 uft-8 编码代码乱码问题

2015-09-14

Linux设备驱动开发详解 第二版 源码 zip

Linux设备驱动开发详解 第二版 源码 zip

2015-05-09

curl-7.41.0.tar.bz2

curl is a command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, HTTP/2, cookies, user+password authentication (Basic, Plain, Digest, CRAM-MD5, NTLM, Negotiate and Kerberos), file transfer resume, proxy tunneling and more.

2015-04-25

libpcap-1.7.3.tar.gz

a portable C/C++ library for network traffic capture.

2015-04-25

libiconv-1.14.tar.gz

This library provides an iconv() implementation, for use on systems which don't have one, or whose implementation cannot convert from/to Unicode.

2015-04-25

libini-1.1.10-2.tgz

An INI file parser that can read, edit and create large INI files. Usable under Microsoft Windows, DOS, Linux, etc. Supported languages are C, C++, Visual Basic, Java, TCL, Perl, Python, etc (DLL and SWIG capable).

2015-04-25

jsoncpp-src-0.5.0.tar.gz

jsoncpp is an implementation of a JSON (http://json.org ) reader and writer in C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.

2015-04-25

ghostpdl-9.16

GhostPCL is Artifex Software's implementation of the PCL-5tm and PCL-XLtm family of page description languages. For more information please see the documentation included with the source package.

2015-04-25

json-c lib

JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects.

2015-04-25

curl-7.42.0.tar.bz2

curl is a command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, HTTP/2, cookies, user+password authentication (Basic, Plain, Digest, CRAM-MD5, NTLM, Negotiate and Kerberos), file transfer resume, proxy tunneling and more.

2015-04-25

cconv-0.6.2.tar.gz

cconv(pronunciation: see-conv.) is iconv based simplified-traditional chinese conversion tool. It is NOT only transcoding programm, but also TRANSLATE tools between the Simplified Chinese and Traditional Chinese.

2015-04-25

InputHelper

Sublime Text 在 Linux 下支持中文输入的插件

2015-04-03

Linux内核编程.pdf

作者:Claudia Salzberg 作者 Rodriguez 作者 Gordon Fischer 作者 Steven Smolski 作者 陈莉君 贺炎 刘霞林 译者 《Linux内核编程》以Linux操作系统为基础 详细介绍了Linux内核子系统 并辅以大量内核源代码和示例程序进行演示 引领读者深入Linux内核 《Linux内核编程》的主要内容包括:Linux基础知识 内核探索工具集 进程的整个生命周期 内存区 页面 Slab分配器 用于输入 输出的各种设备 文件系统 抢占 自旋锁 信号量 内核引导 构建Linux内核 以及向内核添加代码等 同时还简单介绍了一些应用工具和实用程序 从而可以获取理解内核内幕所需的信息 每章末尾都给出一些练习 涉及内核运行的操作及工作原理 《Linux内核编程》适合对Linux内核感兴趣的各层次读者 无论对Linux初学者还是Linux 程序开发人员 本书都是一本很有价值的参考书 ">作者:Claudia Salzberg 作者 Rodriguez 作者 Gordon Fischer 作者 Steven Smolski 作者 陈莉君 贺炎 刘霞林 译者 《Linux内核编程》以Linux操作系统为基础 详细介绍了Linux内核子系统 并辅以大量内核源代码和示例程序进行演示 引 [更多]

2015-02-27

color-compile - 源码

当使用 gcc/g++/make 编译出现 error/warning/note 显示相应的醒目的颜色提醒。 解决了有些系统没有颜色的问题

2014-12-30

color-compile 源码

当使用 gcc/g++/make 编译出现 error/warning/note 显示相应的醒目的颜色提醒。

2014-12-23

unix network programming(Volume 1 • Third Edition).pdf

unix network programming(Volume 1 • Third Edition) UNIX网络编程卷1:套接字联网API(第3版)英文版

2014-11-27

计算机的并行接口大全.doc

计算机的并行接口,计算机的并行接口大全 IEEE1284信号及脚序

2014-11-27

Linux 最最常用命令使用示例(10个并配图)

Linux 最最常用命令使用示例(10个并配图) 入门级

2014-11-24

Win8如何架设无线网

Win8如何架设无线网,解决无法建设的问题

2013-05-20

windows环境下,硬盘安装各种linux发行版本

windows环境下,硬盘安装各种linux发行版本 (以linux mint 为例)

2013-05-20

空空如也

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

TA关注的人

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