堆和栈的区别 一、预备知识—程序的内存分配 一个由c/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收 。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表,呵呵。 3、全局区(静态区)(static)—,全局变量和静态变量的存储是放在一块的,初始化的全局变量和静态变量在一块区域, 未初始化的全局变量和未初始化的静态变量在相邻的另一块区域。 - 程序结束后有系统释放 4、文字常量区—常量字符串就是放在这里的。 程序结束后由系统释放 5、程序代码区—存放函数体的二进制代码。 二、例子程序
上传时间: 2013-12-23
上传用户:yzhl1988
uC/OS原版的TCP协议栈,直接得自Micrum的,全C源码,在IAR下面编译运行过。
上传时间: 2014-01-24
上传用户:皇族传媒
Jazmyn is a 32-bit, protected mode, multitasking OS which runs on i386 & above CPU`s. Its completely written in C++.
标签: multitasking protected complete Jazmyn
上传时间: 2014-12-02
上传用户:奇奇奔奔
这是ESS公司6425芯片上OS的一部分,包含所有flash读写、IDE接口、fat32文件系统所有的C语言代码,对学习文件系统和接口驱动的朋友有很多帮助
上传时间: 2015-08-29
上传用户:zhuyibin
Jan 04, 2007 1. Add SPI support, see spi.h and spi.c 2. Add driver.h 3. Modified keyboard module and display module 4. Add BitSet support, see bitset.h and bitset.c 5. Fixed some bugs Dec 25, 2006 1. Name this OS as AvrcX 2. Release AvrcX_1.0 alpha
上传时间: 2015-09-02
上传用户:
CppNetwork Programming Volume II,C++网络编程 卷2 基于ACE和框架的系统化复用,英文版,chm格式
标签: Programming CppNetwork Volume II
上传时间: 2015-09-03
上传用户:agent
CppNetwork Programming Volume II,C++网络编程 卷2 基于ACE和框架的系统化复用,中文版,pdg格式
标签: Programming CppNetwork Volume II
上传时间: 2015-09-03
上传用户:yuzsu
At91s64_ucos2.76:基于at91sam7s64芯片的uc/os移植代码,编译器是keil c
上传时间: 2015-09-21
上传用户:lgnf
UCOS/II for ICCAVR - The version of UCOS/II is 2.04 - the original port was done by Ole Saether for the IAR compiler. Jens E. Holtegaard ported one version using ICCAVR. Joerg Meyer did another port (using Jens port as a start?). This is basically Joerg s port plus a little bit of changes and documentation by me. - YOU MUST DOWNLOAD THE MAIN PART OF THE UCOS/II FROM THE UCOS/II WEBSITE http://www.ucos-ii.com . The supplied project file assumes the portable source is in the ..\source directory. - Joerg has written couple document showing the stack frames etc. but it is in German :-) They are included in this directory. - The Timer2 overflow interrupt is used for Timer Tick. If you want to change that, modify os_cpu_c.c and os_cpu_a.s - I have tested this using ATMega103 with and without external RAM using AVR Studio simulator. See test1.c test program. Both Code Compressed (PRO) and STD versions have been tested.
标签: UCOS original Saether version
上传时间: 2015-11-14
上传用户:ippler8
uCOS-II下的timer使用实例, TMR.C TMR.H
上传时间: 2014-11-09
上传用户:plsee