Keil Logo Arm Logo

How to minimize data memory usage in programm

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
A.Bhaskar Reddy
Posted
21-Apr-2012 10:01 GMT
Toolset
C51
New! How to minimize data memory usage in programm

Hi, I am using p89v51rd2 micro controller,Kiel software for my application. when i built my program it is showing that Program Size: data=12.2 xdata=626 code=44379 creating hex file from "SGW"... "SGW" - 0 Error(s), 6 Warning(s)
in the datasheet it is mentioned that 1KB data RAM,64KB code flash.I am programming i c.The code is working miscellaneously some times.does it happening because of exceed of data memory.How can i know how much data memory is using by program?
Please let me know how to minimize data memory in my application. Thanks in advance,
With regards,
Bhaskar

Read-Only
Author
j hameel
Posted
21-Apr-2012 10:28 GMT
Toolset
C51
New! RE: How to minimize data memory usage in programm

i have same problem and got 168923 byte.

plz quick. i wait for answer.

Jalahar

Read-Only
Author
A.Bhaskar Reddy
Posted
21-Apr-2012 10:55 GMT
Toolset
C51
New! RE: How to minimize data memory usage in programm

can any one help me please.I am in urgent need of your answer

Read-Only
Author
Andrew Neil
Posted
21-Apr-2012 15:17 GMT
Toolset
C51
New! RE: I am in urgent need of your answer

But too urgent, apparently, for you to actually read the answer that you've already been given:

http://www.keil.com/forum/20757/

http://www.catb.org/~esr/faqs/smart-questions.html#urgent

Read-Only
Author
christian crosa
Posted
23-Apr-2012 14:15 GMT
Toolset
C51
New! RE: How to minimize data memory usage in programm

I use the following command for the linker (on Misc Control)

--feedback=!UnusedFunctions!.Txt

it reduces a bit the size of the image by removing unused functions.

It need to be run twice if first time.

Read-Only
Author
Erik Malund
Posted
26-Apr-2012 22:15 GMT
Toolset
C51
New! totally wrong

How to minimize data memory usage in programm
totally wrong title, for efficiency you want to maximize data memory usage

Erik

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.