【7/31】114學年度第2學期研究生論文口試結束Thesis Defense Ends   ♠   【8/1】115學年度第1學期開始 2026 Fall Semester Begins   ♠   【8/3】暑期班申請課程停修開始(至7日止) Summer Session Withdrawal (8/3-   ♠   【8/18】115學年度入學各級新生、轉學生選課(至20日止) Course Selection for   ♠   【8/21】暑期班結束 Summer Session Ends   ♠   【9/1】教師送繳115學年度暑碩專班成績截止   ♠   【9/1-2】新生領航營(至2日止)   ♠   【9/3-18】受理校際選課(至18日止) Inter-School Selection (9/3-9/18)   ♠   【9/4-7】受理就學貸款申請(4日、7日兩天)   ♠   【9/3-18】受理校際選課(至18日止) Inter-School Selection (9/3-9/18)   ♠   【9/4-7】受理就學貸款申請(4日、7日兩天)   ♠   【9/7】全校各級學生上課開始、註冊日 1. Class Begin 2. Registration   ♠   【9/7-30】弱勢助學金申請(至30日止)   ♠   【9/7】生輔組校內外獎學金申請(依 生輔組公告辦理)   ♠   【9/25】中秋節 Mid-Autumn Festival (no class)   ♠   【9/28】教師節 Teacher's Day (no class)   ♠   【9/29-11/20】期中教學意見反映(至11月20日止) Mid-term Feedback on Teaching   ♠   【10/9-10】國慶日補假 Holiday-Double Tenth Day (no class)國慶日 Double Tenth Day (no class)   ♠   【10/19-12/4】期中成績預警開始(至12 月4日止) Academic Warning System Starts   ♠   【11/11】全校運動大會(停課一天) Sports Day   ♠   【11/27-12/20】教學意見調查開始(至12月20日止) Online Course Evaluation (11/27-   ♠   【12/21-24】期末考試開始(至24日止) Final Exams   ♠   【12/25】行憲紀念日 Constitution Day   ♠   【12/28】寒假開始 Winter Break Begins   ♠  

Title

第7講 C語言轉成組合語言

第1節

L7A

第2節

L7B

第3節

L7C

第4節

L7D

Syllabus

章節大綱

C語言轉成組合語言(From C to Assembly )


L7_A
         電腦系統
         (Computer system overview)
         組合語言的基本概念
         (Basic concepts of assembly code)
         Q1: 如何把C程式碼轉成x86組合語言程式碼?
         (Q1: How to convert C to x86 assembly code ?)

         Q2: 全域變數轉成組語後的型式
         (Q2: Glogal variables in assembly)
          - Object file 的不同區段 : TEXT、DATA、BSS
          (- Different sections of object file : TEXT、DATA、BSS)


L7_B
         Q2: 全域變數轉成組語後的型式
         (Q2: Glogal variables in assembly)
         - mov的語法
         (- mov syntax)

         Q3: 局部變數轉成組語後的型式
         (Q3: Local variables in assembly)
         - 堆疊、暫存器
         (- Stack、Register)

         Q4: 加法運算轉成組語後的型式  
         (Q4: Addition in assembly )

         Q5: 條件判斷轉成組語 
         (Q5: Control statements in assembly)
         <=不知道翻得對不對???
         - Compare two operands(cmp) 和 Conditional jump
         (- Compare two operands(cmp) & Conditional jump)

L7_C
         Q6:指標轉成組語後的型式
         (Q6: Pointers in assembly)
         - Load effective address(lea)
         (- Load effective address(lea))  

         Q7: 函數呼叫轉成組語後的型式
         (Q7: Calling C Functions in assembly)
          - call、ret和leave
          (- call、ret & leave) 


L7_D
         Q7: C語言的函數呼叫轉成組語後的型式
         (Q7: Calling C Functions in assembly)
         - call、ret和leave
         (- call、ret & leave) 

         Q8: C語言的遞迴轉成組語後的型式
         (Q8: Recursion in assembly)
          - call_f
         (- call_f)
          -Tail call elimination
         (-Tail call elimination)
 

 陳煥宗教授-程式設計二講義
               Teaching  Materials