C语言中的垃圾回收分析  

Analysis on Trash Recycling of C Language

在线阅读下载全文

作  者:沈俊慧[1] 

机构地区:[1]福建船政交通职业学院信息工程系,福建福州350007

出  处:《无线互联科技》2015年第20期90-91,118,共3页Wireless Internet Technology

摘  要:C语言没有运行时库,无法自动压缩使用中的内存,缩小堆栈所需内存空间。若只申请内存,没有释放,势必造成系统内存不断减少、丢失。长时间的运行,最终导致系统死机。文章阐述了C语言垃圾产生的原因,并从引用计数、标记—清除算法两方面提出如何实现C语言的垃圾回收。C Language don't have runtime library, can't use the memory automatically compressed, narrowing the stack memory space required. If only for memory, no release, is bound to cause system memory decline and lost. The long time running eventually lead to system crash. The article expounds the cause of C Language trash, and from reference counting and mark-sweep algorithm is put forward how to realize theC Language trash recycling.

关 键 词:C语言 垃圾回收 引用计数 标记—清除算法 

分 类 号:TP312.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象