作者neoneon (紅茶を飲む程度の能力)
看板NCTU-Teacher
標題Fw: [心得] 蔡文錦 組合語言
時間Tue Jul 12 00:47:36 2016
※ [本文轉錄自 neoneon 信箱]
作者:
[email protected] ("愛宕有機奈米負離子貓")
標題: [心得] 蔡文錦 組合語言
時間: Sun Jul 10 09:26:10 2016
作者: PkmX (阿貓) 看板: NCTU-Teacher
標題: [心得] 蔡文錦 組合語言
時間: 2011/07/07 Thu 20:17:49
發心得文上癮了(?)
⊕課名⊕
組合語言與系統程式
▲教授▲
資工系 蔡文錦教授 (請不要和蔡文能或蔡文祥搞混了^.<)
★修課年度★(請加註開課單位 如:大三通識、XX系選修、XX所)
99下 (資工系二下必修)
£教了什麼£(課程大概內容。或是額外學會了什麼東西。)
我直接把講義的大綱列出來,基本上大綱已經把會教的東西寫得很詳細了:
組合語言部份
Ch.2 IA-32 Processor Architecture
- Basic microcomputer design
- Instruction execution cycle
- Addressable memory
- Registers
Ch.3 Assembly Language Fundamentals
- Basic elements of assembly language
- Example: adding and substracting integers
- Assembling, linking, and running programs
- Defining data
- Symbolic constants
Ch.4 Data Transfers, Addressing and Arithmetic
- Data transfer instructions
- Addition and subtraction
- Data-related operators and directives
- Indirect addressing
- JMP and LOOP instructions
Ch.5 Procedures
- Linking to an external library
- The book's link library
- Stack operations
- Defining and using procedures
- Program design using procedures
Ch.6 Conditional Processing
- Boolean and comparison instructions
- Conditional jumps
- Conditional loop instructions
- Conditional structures
- Application: finite-state machines
- Decision directives
Ch.7 Integer Arithmetic
- Shift and rotate instructions
- Shift and rotate applications
- Multiplication and division instructions
- Extended addition and bubtraction
Ch.8 Advanced Procedures
- Stack frames
- Recursion
- .MODEL directive
- INVOKE, ADDR, PROC, and PROTO
- Creating multimodule programs
Ch.9 Strings and Arrays
- String primitive instructions
- Selected string procedures
- Two-dimensional arrays
- Searching and sorting integer arrays
Ch.10 Structures and Macros
- Structures
-- Defining structures
-- Declaring structure variables
-- Referencing structure variables
-- Example: display the system time
-- Nested structures
-- Declaring and using unions
- Macros
-- Introducing macros
-- Defining macros
-- Invoking macros
-- Macro examples
-- Nested macros
-- Example program: wrappers
Ch.13 High-level Language Interface
- Introduction
- Inline assembly code
- C calls assembly procedures
- Assembly calls C procedures
SSE2 Instruction Set (補充)
- Introduction to SSE2
- SSE2 instructions
- Matrix multiplication with SSE2
系統程式部份
Ch.1 Background
- Introduction
- Relation to machine architecture
- SIC machine architecture
- SIC/XE machine architecture
- IA-32 architecture (CISC)
- PowerPC architecture (RISC)
Ch.2 Assemblers
- SIC assembly
- Assembler algorithms and data structures
- Instruction formats and addressing modes
- Program relocation
- Program blocks
- Assembler design options
- One-pass assemblers
◆上課方式◆(投影片、團體討論、老師教學風格)
上課是用投影片,投影片寫得非常清晰明瞭,也有很多範例,
我個人認為應該(?)是不用另外買書啦,不過要買來自己唸也是ok,
而教授基本上就是照著投影片循序漸進教,認真聽應該都會懂,
不懂的話可以盡量發問^.<
▼考試作業▼
這學期課堂上有八次隨堂小考,基本上都是考簡單的觀念,
只要到場就算交白卷(記得寫名子^.<)也有基本點名分,
而且教授如果看大家好像都不太會寫,會開放給大家討(ㄔㄠ)論(ㄒ一ˊ)答案(?),
所以小考的部份應該是很好拿分,記得要去上課就是了XD
大考的話有期中和期末考(筆試),另外還有一次上機考,
這學期期中考難度算適中,上機考聽說有點難(?),期末考好像有點放水(個人感覺),
上機考因為同學分數不是很理想,所以還另外有補考,可以加到60分,
此外還有三個作業,基本上只要理解課堂上的東西就會寫,
最後有一個final project是用SSE2做矩陣乘法的加速,
順便練習如何將C和assembly的程式link在一起
¥其他¥(是否注重出席率or嚴禁遲到?需要的基礎?)
上課會有隨堂小考,有去就有點名分,至於需要的基礎,
對電腦有點認識或修過計算機科學概論的同學應該都可以修吧,
另外如果懂一點C應該會很好上手
¢最後想說的話¢
老師人很好,助教也很認真!!!
對組合語言有點認識的同學就會知道,
其實不同平台不同的組譯器的syntax和directives是不一樣的,
這門課所有的作業和考試都必須使用MASM完成,
如果你是UNIX-like的作業系統的愛用者(像我),
可能要找別台機器或dual boot或用虛擬機器灌windows和visual studio來用
&誰適合修這門課&
資工二下的同學
想修好組語的同學
想要集滿資工系蔡文.系列教授的同學 (誤
不想要組語讓你永生難忘的同學
--
※ Origin: 交大次世代(bs2.to)
◆ From: 114-25-248-218.dynamic.hinet.net
推 LyHsueh:推薦這篇文章 07/07 20:18
推 shaform:推薦這篇文章 07/07 20:18
推 BENQ:推薦這篇文章 07/07 20:23
推 mike1026915:推薦這篇文章 07/07 20:43
推 jarhys:推薦這篇文章 07/07 20:44
推 handsomeme:推薦這篇文章 07/07 20:47
推 gxlkhhc:推薦這篇文章 07/07 20:47
推 conanex:組語心得文三缺一 07/07 20:47
推 sa411022:原PO都不來上課還拿100 07/07 20:59
推 PSP:推薦這篇文章 07/07 21:13
推 soulinlove:推薦這篇文章 07/07 22:02
推 sticky84:推薦這篇文章 07/07 22:20
推 kougousei:好老師推 教得好 給分甜 夫復何求 07/07 22:21
推 ahsuan:推薦這篇文章 07/07 23:10
作者從 114-25-248-218.dynamic.hinet.net 修改文章於 2011/07/08 Fri 00:02:04
推 always112358:推薦這篇文章 07/08 09:43
推 b2305911:推薦這篇文章 07/08 10:03
天 michael01800:推薦這個好老師!!! 教的好~給分又很善良~!!! 07/10 12:36
推 PSP:老師超正! 07/10 12:40
推 aprilsheep:推薦這篇文章 07/13 02:35
推 xatier:推 Unix-like 12/19 22:28
※ 發信站: 批踢踢實業坊(ptt.cc)
※ 轉錄者: neoneon (106.105.175.48), 07/12/2016 00:47:36