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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/17/01 16:52
Read: times


 
#13275 - RE: Program length?
#ifs can be very useful, but code with lots of #ifs can be hard to read.
Get an editor which can "hide" the "inactive" code for you; eg, CodeWright.

Most compilers have an option which allows you to generate a listing of the pre-processed text as the compiler sees it; ie with all the #include files included, all the macros expanded and only the "active" conditional code in place.
This is invaluable for debugging problems with #ifs, #includes, and macros.

Some compilers allow you to retain the comments in this listing - which makes it much easier to read (unfortunately, Keil doesn't).

List of 8 messages in thread
TopicAuthorDate
Program length?            01/01/70 00:00      
RE: Program length?            01/01/70 00:00      
RE: Program length?            01/01/70 00:00      
RE: Program length?            01/01/70 00:00      
RE: Program length?            01/01/70 00:00      
RE: Program length?            01/01/70 00:00      
RE: Program length?            01/01/70 00:00      
RE: Program length?            01/01/70 00:00      

Back to Subject List