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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/06/02 16:52
Read: times


 
#22594 - RE: help on assembly => C conversion
"Also if the code was written entirely in C it will be easy to understand and debug it later on by other users (my impression). "

Thinking of the next guy, you are awarded a gold star.


"My idea is to take the functions individually and convert them into C??
any comments?"

Leave what is well alone, many projects end up as a C and assembler mix anyhow. Th gain uniformity of calling rewrite the main loop into "C" and change the interface for the (hopefully) few assembler routines called from there. Then identify the functions you have to change and recode those in C.

Do remember that this requires planning, just doing it will force you to rely on testing for validation which is worthless.

The point made that just coding functions, the function of which is known, rather than trying to "convert" from assembler is a good one, often you will spend more time trying to copy assembler than just coding. The exception here is that in some cases you need to read the assembler to find the logic.

One final point: if the program operates time critical I/O, you may have to rethink the whole approach before starting.

Have fun,

Erik



List of 10 messages in thread
TopicAuthorDate
help on assembly => C conversion            01/01/70 00:00      
RE: help on assembly => C conversion            01/01/70 00:00      
RE: help on assembly => C conversion            01/01/70 00:00      
RE: help on assembly => C conversion            01/01/70 00:00      
RE: help on assembly => C conversion            01/01/70 00:00      
RE: help on assembly => C conversion            01/01/70 00:00      
RE: help on assembly => C conversion            01/01/70 00:00      
RE: help on assembly => Craig, Steve            01/01/70 00:00      
RE: help on assembly => C conversion            01/01/70 00:00      
RE: help on assembly => C conversion            01/01/70 00:00      

Back to Subject List