-
Code and data size
I have a file generated by build process of Borland 4.0 that is similar to map file.. Project is built using small memory model and output binary file is programmed in EPROM.
And here is the snap shot of the file
Code:
Length Segment Class
006E2H _DATA DATA
00002H _CVTSEG DATA
00006H _SCNSEG DATA
0D998H _BSS BSS
00002H _BSSEND BSSEND
00C00H _STACK STACK
00010H _FARHEAP FARHEAP
06581H _TEXT CODE
00012H _INIT_ INITDATA
00000H _INITEND_ INITDATA
00000H _EXIT_ EXITDATA
00010H _EXITEND_ EXITDATA
00000H _RD ROMDATA
006E2H _DATA ROMDATA
00002H _CVTSEG ROMDATA
00006H _SCNSEG ROMDATA
00010H _ERD ENDROMDATA
00005H ??BOOT (ABSOLUTE)
As per my understanding, segments whose name is from _DATA to _FARHEAP falls in RAM and remaining in code segment that lies in ROM.
Please help me to find the size of code and data.
-
You should refer to the documentation but here's what it looks like to me.
Everything except STACK and CODE are data. CODE is the code. Just a guess though.
BSS is uninitialized global data, so it's definately data.
gg