Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What this line means?

Status
Not open for further replies.

dariush_abbasi

Member level 3
Joined
Oct 2, 2010
Messages
61
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,664
Hi,
In Keil uvision the following line indicated for program size.
would someone explain it?
Program Size: Code=3984 RO-data=476 RW-data=68 ZI-data=2548
Thanks in advance.
 

In Keil uvision the following line indicated for program size.
would someone explain it?
Program Size: Code=3984 RO-data=476 RW-data=68 ZI-data=2548

After compiling and linking the number of bytes stored in various sections of storage of the device:

Code=3984 -- Indicates the size of code stored in the Code Section of storage, usually Flash Memory is 3984 bytes.

RO-data=476 -- Indicates the size of Read Only Data, constants, literals, string literals, etc, stored in the Read Only Data Section of storage, usually Flash Memory is 476.

RW-data=68 -- Indicates the size of Read/Write Data, initialized variables, etc, stored in the Read/Write Data Section of storage, usually RAM Memory is 68.

ZI-data=2548 -- Indicates the size of Uninitialized Data, uninitialized variables, dynamic allocation, etc, stored in the Zero Initialized Data Section of storage, usually RAM Memory is 2548.

What device is this program being compiled, 8051 variant, ARM, etc?

Hope the info helps,

BigDog

---------- Post added at 23:29 ---------- Previous post was at 23:20 ----------

I just found a discussion concerning the meaning of the compiler message:

Program Size: Code=3984 RO-data=476 RW-data=68 ZI-data=2548

I thought it might give you more insight in to the exact meaning of the above message:

RAM and ROM in KEIL

BigDog
 
Thanks a lot for your reply.
My chip is ARM , the STM32F103 ,with 128 Kbytes of Flash memory and 20 Kbytes of SRAM.
From this line,then,how can i know the amount of Flash and SRAM which are used?
 

My chip is ARM , the STM32F103 ,with 128 Kbytes of Flash memory and 20 Kbytes of SRAM.
From this line,then,how can i know the amount of Flash and SRAM which are used?

Flash used: Code + RO-data = 3984 + 476 = 4460 bytes of Flash used.

SRAM used: RW-data + ZI-data = 68 + 2548 = 2616 bytes of SRAM used.

BigDog
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top