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

Back to Subject List

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


 
#13308 - RE: Writting Comment
Depending on how modular your assembly code is, you might want to make a separate file for the code you want removed. You could then do a conditional 'include' of the code area, or do some tricks with the linker.

Removing 1000 lines is not so unusual, but I would assume you need to do a bait and switch of code so that routines don't call or try to use the missing code. It might help more to understand the reasoning behind your need to disable the code.

If this is a one time test, I'd just 'ifdef ASSEMBLE_IT' ..code.. 'endif' around the code section, or delete it from the file (make sure you have the original elsewhere.)

If you just want the code around for historical reasons but it will never be used again, I would put ';' in front of every line so that the next person going through the code doesn't waste two weeks analyzing the code just to find that it is never used. It would be easy for someone to start analyzing an interesting section 200 lines into the 'comment' (4 pages after the 'ifdef') and not realize this code isn't being used.

It is good to think of the poor sole who has to maintian the code when you are long gone.

<>< Lance.


List of 10 messages in thread
TopicAuthorDate
Writting Comment            01/01/70 00:00      
RE: Writting Comment            01/01/70 00:00      
RE: Writting Comment            01/01/70 00:00      
RE: Writting Comment            01/01/70 00:00      
RE: Writting Comment            01/01/70 00:00      
RE: Writting Comment            01/01/70 00:00      
RE: Writting Comment            01/01/70 00:00      
RE: Writting Comment            01/01/70 00:00      
RE: Writting Comment            01/01/70 00:00      
RE: Writting Comment            01/01/70 00:00      

Back to Subject List