To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1844
1843  |  1845
Subject: 
Memory question
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Tue, 13 Dec 2005 19:19:35 GMT
Viewed: 
6057 times
  
Say I had a program that has a very large block of start-up/calibration code
that is run once at the top of the program. Does it make any difference if I
keep it in the "Main()" task, or put it in a function?

I mean from the point of stack space usage, and overflows and the like?

Thanks

Steve



Message has 1 Reply:
  Re: Memory question
 
(...) Most functions in NQC are in-line functions, so in a sense they probably *are* in main(). One thing I do is place all my initalization code (as much as possible) into inline functions. That way, when the compilier runs through, it can allocate (...) (19 years ago, 13-Dec-05, to lugnet.robotics.rcx.nqc)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR