Home‎ > ‎2012讀書會‎ > ‎

2012-08-07

08/07: JuluOSDev 讀書會 : Lab2 and TDD preview

 

 
Lab2 Review
 
page_free_list: 用來描述實體記憶
 
 struct Page
 
For challenge for ex 5
PTE_PS
  page 3-27 : features 
 
Reduce space of page index structure?
   - read physical memory size (ex: e820)
   - allocate fit size of page index..
 
Memory Leak detection for OS?
    -- gabage collection
 

TDD 

overview

 -- step1: Covert test cases to write function-test-function 
 -- step2: (if c like, ...) let it passed build procedure with dummy function
 -- step3: add real code to dummy function
       --> a. write partial, goto b
       --> b. test, if not passed goto a, 
       --> else goto step1 
 

Case for use

    --> spec is clear
    --> interface (non-gui)
        --> API, CLI, RPC (ex: OS)
    --> you don't have QA, then automation is your best friend.
 

next topic

  • TDD in Python with C code 
  • Real practice

 
簽到 (用以將人名和編輯顏色作關連)
ben6
cacaegg
eric
wayling
Comments