轉職成工程師後,一直認為自己對相關知識的認識有所不足,特別是系統編程和底層知識。對於非科系學生來說,這些概念可能會很困難,但對於應用層面的編程卻有很大的幫助。最近我正在閱讀一本關於系統編程的書籍——《Rust in Action》。在這本書中,使用Rust介紹了系統編程,有許多看起來很複雜的用語,讓我感到困惑。像以下這段文字,對於非科系學生來說,是非常難以理解的:
Page—A fixed-size block of words of real memory. Typically 4 KB in size for 64-bit operating systems.
Word—Any type that is size of a pointer. This corresponds to the width of the CPU’s registers. In Rust, usize and isize are word-length types.
Page fault—An error raised by the CPU when a valid memory address is requested that is not currently in physical RAM. This signals to the OS that at least one page must be swapped back into memory.