C語言結構體內存對齊(#prama / __attribute__)

本文測試機器爲X86_64架構,系統爲ubuntu-16.04 LTS,gcc version 7.4.0web 1、默認的內存對齊 首先,經過一個例子來介紹什麼是內存對齊。ubuntu #include <stdio.h> int main( ) { struct data { float a; char b; int c;
相關文章
相關標籤/搜索