Linux???ε????
???????????? ???????[ 2015/12/31 10:27:38 ] ??????????????
????Linux ??ó????????????У????? segment???Σ?????????????? size ??????в???
????size a.out
????text data bss dec hex filename
????1639 264 8 1911 777 a.out
?????????????????? text ?Σ?data ?Σ?bss ?Σ????????size ?????????????????????ε??С????????ο?????????????????????????????е??????????????
???????Linux ?ε????
????text??????Σ??洢??????????????????????????
????data: ????Σ?????????о??????????????????????????????????????????????????????????
????bss: bss ?Σ??????????о??????????????????????????????????????????????????????
???????heap???? ????????????????????????????? malloc ???з????????
???????stack??????????????????????????
??????????????
????Linux ??????????????ε??????й????????????е????????????μ??????????
????2.1??a.out ????????
???????????е??????window ??????? .exe ???? .txt ??????????????????????Linux ?μ????????????????Щ??????????????????б?????
???????????е??????????Щ????????????е???????????????????????????????Щ??????????????????????????Щ?????????????????????????????????????λ??????
????2.2?????
???????????е???????????????????Σ????????????е??
?????Σ???????????????????????????????????????????????????λ??????????δ????????????????????????????????????δ??????????????????????????????????Υ???????????????£???????????????? K ????????????????????С???????????????????????C????????
??????????С????
???????? size a.out ???С
?????????С;
????int main()
????{
????printf("hellow world
");
????}
????text data bss dec hex filename
????1132 256 8 1396 574 a.out
????1???????????洢????У?
????int main()
????{
????int a;
????printf("hellow world
");
????}
????~
????text data bss dec hex filename
????1132 256 8 1396 574 a.out
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11