Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
288 views
in Technique[技术] by (71.8m points)

visual studio - How to extract CodeSize: DataSize: StackSize: ImageSize: from linker Map file?

I am able to create the Linker Map file. How do I get the following to give to a client from it. I don't know how to interpret: bss, rtc, xdata, etc...

I need values for the following:

CodeSize:
DataSize:
StackSize:
ImageSize (InFlash):

linker map file:

subsection   size  length  num of records

.textbss    188981  188981  1
.text$di    6752    16416   2
.text$mn    381344  381344  2008
.text$x 6576    6576    67
.text$yd    4252    4252    2
.CRT$XCA    260 260 1
.CRT$XCAA   260 260 1
.CRT$XCU    268 268 2
.CRT$XCZ    260 260 1
.CRT$XIA    260 260 1
.CRT$XIAA   260 260 1
.CRT$XIAC   260 260 1
.CRT$XIZ    260 260 1
.CRT$XPA    260 260 1
.CRT$XPZ    260 260 1
.CRT$XTA    260 260 1
.CRT$XTZ    268 268 1
.rdata  24960   24960   587
.rdata$CastGuardVftablesA   260 260 1
.rdata$CastGuardVftablesC   260 260 1
.rdata$r    1076    1076    36
.rdata$zzzdbg   0   400 0
.rtc$IAA    260 260 1
.rtc$IMZ    272 272 3
.rtc$IZZ    260 260 1
.rtc$TAA    260 260 1
.rtc$TMZ    272 272 3
.rtc$TZZ    264 264 1
.xdata$x    2461    2461    73
.edata  0   0   0
.data   576 576 20
.data$r 408 408 4
.data$rs    496 496 5
.bss    151592  151592  38
.idata$5    804 804 136
.idata$2    80  80  4
.idata$3    20  20  1
.idata$4    0   804 0
.idata$6    3515    3545    4
.msvcjmc    454 454 165
.00cfg  265 265 2
.rsrc$01    0   368 0
.rsrc$02    716 716 1
question from:https://stackoverflow.com/questions/65910745/how-to-extract-codesize-datasize-stacksize-imagesize-from-linker-map-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...