Does MicroCpro consumes more memory than BASCOM?

Status
Not open for further replies.

Mithun_K_Das

Advanced Member level 3
Joined
Apr 24, 2010
Messages
899
Helped
24
Reputation
48
Reaction score
26
Trophy points
1,318
Location
Dhaka, Bangladesh, Bangladesh
Visit site
Activity points
8,254
I've been feeling this problem for many days. The problem is, if a program written in microCpro takes 100RAM space, 100 ROM space, the same program written in BASCOM takes less than 100 RAM/ROM.

Why? Is there any thing that program written in microC will consume more RAM/ROM?

Is there any way out to save memory in microC?

I'm feeling this problem mostly in LCD based working. In microC, only few texts can be written. But in BASCOM, around double texts can be written but consumes less RAM/ROM. I don't understand this thing.

Can any one explain? How can I write more texts for LCD program in microC? b'cz. I want to learn one thing well than learning many things a few.
 

Each compiler will have a different memory footprint and level of optimization. If the difference is large, there's probably a basic implementation difference, either caused by your coding style or compiler specific behaviour. Storage of constant strings in RAM or ROM might be a point that matters.

Experts analyze the generated assembly level code and symbol tables to understand the differences.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…