From: Daniel W. <dan...@ro...> - 2001-08-16 20:18:04
|
> > > Are static local variables also included in the fixed global > > > memory? > > > > I think so, although I'm not sure if they are in there yet. Is > > that the way it is normally done? > > Well, they must maintain their state throughout the execution of the > program. That means they must have their own storage location. All > of the non-automatic storage locations, including globals and > statics, must be initialized to zero. I think I was assuming that all non-automatic variables would be alloca= ted=20 at the start of memory, before the heap. I didn't realize non-automatic=20 variables were initialized to zero... It would be nice to put literals in the code memory to save space in th= e=20 data memory. I think I remember this being possible with PICs... > Do you know what needs done yet? It would be cool if you could think > of a few coding tasks to let me familiarize myself more with your > code. I think I'm going to have to sit down with the code more before I can t= ell=20 where to go next. Right now the main thing is getting the grammar correc= t,=20 although a lot of ANSI C has not even been started, such as structures. = Are=20 you familiar with yacc? I doubt if my grammar is even close to correct r= ight=20 now...=20 > Do you want to integrate what you said to me in your last e-mail into > the doc, or should I do that? I think perhaps it would be a good > idea to watch for interesting information in our e-mails and add that > to the docs as necsessary. It is fine if you want to add it, or I will get to it eventually if not= =2E I=20 think my efforts should stay in documentation for a while. That would he= lp=20 my understanding as well. |