自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 灵活/弹性数组成员--结构体中0个元素的数组

<br />看这个结构体的定义:typedef struct st_type{ int nCnt; int item[0];}type_a;(有些编译器会报错无法编译可以改成:)typedef struct st_type{ int nCnt; int item[];}type_a; 这样我们就可以定义一个可变长的结构,用sizeof(type_a)得到的只有4,就是sizeof(nCnt)=sizeof(int)那个0个

2010-11-18 22:17:00 537

转载 How-To Find the Source of "Unaligned Access"

 How-To Find the Source of "Unaligned Access" The memory bus on a computer varies in width based on the memory architeture of the computer. A 32-bit computer has a bus that is wide enough for 32 bits to be read from the bus at once. A

2010-11-18 15:04:00 804

转载 UNALIGNED MEMORY ACCESSES

UNALIGNED MEMORY ACCESSES |'U{/O5_?0=========================中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台sDjzv w9h7q6x-uC'Lv)X0Linux runs on a wide variety of architectures which have varying behaviourx~X%o�H[l3Q0when it comes to memory acces

2010-11-18 15:03:00 1189

转载 *** glibc detected *** double free or corruption: 0x0937d008 *** 错误

<br />Q: 在执行一个程序时,出现如下错误:<br />*** glibcdetected *** doublefree or corruption: 0x0937d008 ***<br />是怎么回事?  <br />A:   设置MALLOC_CHECK_环境变量再运行程序,呵呵,错误信息消失<br /><br />MALLOC_CHECK_=0   ./myprogram<br /><br />红 帽企业 Linux 4 提供的 glibc可以执行附加的内

2010-11-16 19:52:00 717

转载 *** glibc detected *** double free or corruption: 0x0937d008 *** 错误

<br />Q: 在执行一个程序时,出现如下错误:<br />*** glibcdetected *** doublefree or corruption: 0x0937d008 ***<br />是怎么回事?  <br />A:   设置MALLOC_CHECK_环境变量再运行程序,呵呵,错误信息消失<br /><br />MALLOC_CHECK_=0   ./myprogram<br /><br />红 帽企业 Linux 4 提供的 glibc可以执行附加的内

2010-11-16 19:52:00 607

转载 常见的内存错误

<br />*** glibc detected *** free(): invalid pointer:<br />*** glibc detected *** malloc(): memory corruption:<br />*** glibc detected *** double free or corruption (out): 0x00000000005c18a0 ***<br />*** glibc detected *** corrupted double-linked lis

2010-11-16 19:49:00 649

空空如也

空空如也

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

TA关注的人

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