| ??? 11/22/03 13:45 Read: times |
#59236 - RE: Problem/doubt on Keil C51 compiler Responding to: ???'s previous message |
PADMANABHAM:
You have never revealed why the delay at startup is causing you a problem. The only significant activity that the Keil C-STARTUP code does is to initialize the internal RAM and possibly external RAM to zeros. Of course you can elect to bypass this zeroing process if you ensure that the your program properly and completely initializes every variable. (It is good programming practice to do this anyway!!) It will be hard to have further dialog on this subject unless you provide more information as to why you felt it necessary to modify the startup code. You seem to understand the reason as to why it is a good idea to use the off-the-shelf startup code from Keil. I can say that in most my projects I have the startup zero the internal 128 or 256 byte RAM area and I disable the part that zeros the XDATA area. I then always try to write my code so that there are no global data variables in the internal RAM or the external RAM that are initialized to a value. In other words I try to avoid ANY use of code that looks like this:
unsigned char data myvar = 13;
unsigned char data mytable = {0x01, 0x02, 0x04, 0x08,
0x10, 0x20, 0x40, 0x80};
unsigned int xdata mycounter = 0;
char xdata mystring = "0000 rpm";
Michael Karas |
| Topic | Author | Date |
| Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 | |
| RE: Problem/doubt on Keil C51 compiler | 01/01/70 00:00 |



