PDA

View Full Version : Program Structure



MOUNTAIN747
- 5th December 2012, 18:36
As my programs are getting larger I am trying to improve my Program Structure. I remember reading Posts about this subject in the past but have been able to locate only one post on the subject.

http://www.picbasic.co.uk/forum/showthread.php?t=9791&p=64018&mode=linear#post64018

As I write my code, should the configs come first followed by Includes then Defines then PORTs then TRIS, EEPROM, Variables, etc. Does PBP care about the order of these and other items in the Program Structure? I think this is something that should be mentioned in FAQ but I was unable to find it. Comments please!

MOUNTAIN747
- 5th December 2012, 19:13
Ooops! I didn't realize the quote in Norm's post, in the above link, was from Melanie. So, i'm going to consider this the Gospel according to Melanie. and enough said! Oh well, it still should be in FAQ.

mister_e
- 8th December 2012, 10:35
http://www.picbasic.co.uk/forum/showthread.php?t=800&p=3276#post3276