目前分類:Programming (11)
- Jun 22 Tue 2021 08:51
Const用法及文章
- Sep 04 Tue 2018 10:52
Stack v.s. Heap
https://stackoverflow.com/questions/79923/what-and-where-are-the-stack-and-heap
The stack is the memory set aside as scratch space for a thread of execution. When a function is called, a block is reserved on the top of the stack for local variables and some bookkeeping data. When that function returns, the block becomes unused and can be used the next time a function is called. The stack is always reserved in a LIFO (last in first out) order; the most recently reserved block is always the next block to be freed. This makes it really simple to keep track of the stack; freeing a block from the stack is nothing more than adjusting one pointer.
- Jun 21 Thu 2018 13:00
LOG 工具與方法 va_xxx
在專案K2 VIM中, 有分出一個middleware 為 sys_console
專門用來印debug message, 裡面會定義使用哪一個UART port(使用BSP UART)
用來替代一般程式內的printf
- May 30 Wed 2018 10:33
Difference between array type and array allocated with malloc
- Mar 31 Sat 2018 10:05
C programming
1. Declaration may not appear after executable statement in block
根據 ANSI C C90 standard 宣告變數的地方需要在執行任何code 之前
- Mar 27 Tue 2018 09:56
What is callback function?
callback,字面上的解釋就是「回呼」,這牽涉到多工作業系統中兩個同時執行﹝cocurrent﹞的不同模組。一種情形是,A 模組給 B 模組一個 function pointer,
請它在處理完某項工作後,或是在適當時機,使用這個 function pointer 來呼叫該函式。例如,A 模組裡面寫了一個 CallMeIfDone 的 function,然後它啟動了
- Feb 03 Sat 2018 10:12
Opencv cascade .xml training
- Jan 25 Thu 2018 10:42
把vim打造成 source insight
- Jan 06 Sat 2018 15:43
[LeetCode] 介紹