Linux内核设计与实现 内核简介

2017-12-20  本文已影响0人  虹桥过夜好无聊

A Beast of Different Nature

    1. No libc

    2. GNU C

            1.Inline Function

            2.Inline Assembly:  asm() function.

            3.Brach Annotation:   

                    if (unlikely(foo)) {

                    }

                    if (likely(foo) {

                    }

    3. No Memory Protection: 

            Additionally, Kernel memory is not Pageable. Therefore, every byte of memory you consume is one less bytes of available physical memory.

    4. Small, Fixed-Size Stack

            Each process receives its own stack(both in kernel space and user space).

上一篇 下一篇

猜你喜欢

热点阅读