码迷,mamicode.com
首页 >  
搜索关键字:stack    ( 9691个结果
Z-stack关键结构体解析
OSAL的消息队列每一个消息都包含一个消息头osal_msg_hdr_t和用户自定义的消息,osal_msg_hdr_t结构体定义如下:typedef struct{ void *next; uint16 len; uint8 dest_id;} osal_msg_hdr_t;在事件处理函数Samp...
分类:其他好文   时间:2014-11-24 20:48:34    阅读次数:420
堆和栈的区别
一、预备知识—程序的内存分配 一个由C/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其 操作方式类似于数据结构中的栈。 2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回 收 。...
分类:其他好文   时间:2014-11-24 16:37:48    阅读次数:132
CC150 3.1
3.1Describehowyoucoulduseasinglearraytoimplementthreestacks.3stacks?separatethearrayinto3sections.Use3index.push(intstack,Tt) { validateStackNum(stack);//Validate(stack>=0&&stack<2); intpos=stackPos[stack]; check(pos+1);//ifexceeds,enlargeth..
分类:其他好文   时间:2014-11-24 12:09:27    阅读次数:161
算法导论------------栈(stack)简单的数组实现
栈和队列都是动态集合,元素的出入是规定好的。栈规定元素是先进后出(FILO),队列规定元素是先进先出(FIFO)。栈和队列的实现可以采用数组和链表进行实现。在标准模块库STL中有具体的应用,可以参考http://www.cplusplus.com/reference/。 栈的基本操作包括入栈push和出栈pop,栈有一个栈顶指针top,指向最新如栈的元素,入栈和出栈操作操作都是从栈顶端进...
分类:编程语言   时间:2014-11-24 10:11:18    阅读次数:155
MinStack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:其他好文   时间:2014-11-23 23:08:31    阅读次数:339
自己学驱动8——uboot代码阅读三(start.S)
/* Set up the stack                            */ stack_setup:     ldr    r0, _TEXT_BASE        /* upper 128 KiB: relocated uboot   */     sub    r0, r0, #CFG_MALLOC_LEN    /* malloc area          ...
分类:其他好文   时间:2014-11-23 19:00:15    阅读次数:329
自己学驱动7——uboot代码阅读二(start.S)
#ifdef CONFIG_USE_IRQ /* IRQ stack memory (calculated at run-time) */ .globl IRQ_STACK_START IRQ_STACK_START:     .word    0x0badc0de /* IRQ stack memory (calculated at run-time) */ .globl FIQ...
分类:其他好文   时间:2014-11-23 17:38:37    阅读次数:214
【leetcode】Binary Tree Postorder Traversal (hard) ☆
二叉树的后序遍历用标记右子树vector的方法vector postorderTraversal(TreeNode *root) { vector ans; vector stack; vector isRight; stack.push_b...
分类:其他好文   时间:2014-11-23 15:39:43    阅读次数:160
【2014-11-22】《The Hardware/Software Interface》– Section 6
Buffer Overflows IA32 Linux Memory Layout Stack Runtime stack (8MB limit) Heap Dynamically allocated storage Allocated by malloc(), calloc(), new()...
分类:其他好文   时间:2014-11-23 13:06:18    阅读次数:207
windbg脚本实践3----监控特定进程创建
$$*****************************************************************$$ Script by kms_hhl to monitor process create and show call stack$$ Create Time 2....
分类:数据库   时间:2014-11-23 13:00:10    阅读次数:359
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!