Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/26/02 15:11
Read: times


 
#33187 - RE: C++ style in C. mahmood
Hi,

I was enjoying reading all your comments about using OOP methods in C, however I couldn't access the server to download the PDF file with Mr. Schreiner's book. I was trained mainly in C++ and miss the organization of it since recently starting embedded work. I would be more than happy to get rid of globals and use the smallest possible scope of variables, but isn't it difficult to do that in the 8051 because of limited space for parameter passing? I believe the chip uses registers for passing parameters and, otherwise, puts them on the stack. If you've got a large program and limited space, as in the project I am working on now, you run the risk of stack overflow with parameter passing and are therefore stuck with globals. If anyone has a way around that, I'd love to hear about it.

Judy Harrigan

List of 24 messages in thread
TopicAuthorDate
C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C/ Erik            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C/ Erik            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. //Judy / Erik            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. Erik            01/01/70 00:00      
RE: local global???!!!?!?!?!            01/01/70 00:00      
RE: local global???!!!?!?!?!            01/01/70 00:00      
RE: local global???!!!?!?!?!            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      

Back to Subject List