●Code
經編譯器編譯後的所產生的bit或hex檔,會被存到Flash或ROM裡面.
●RO-data (Read-Only data)
程式裡宣告為常數的變數,存在ROM裡.
eq. const int a = 100;
●RW-data (Read-Write data)
程式裡宣告帶有初始值的變數,存在ROM裡,執行時會複製到RAM.
eq. int a = 100;
●ZI-data (Zero Initialie data)
程式裡宣告無初始值的變數,只佔RAM.
eq. int a;
ROM = Code + RO +RW
RAM = RW + ZI