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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/18/08 21:04
Read: times


 
#151054 - Asm vs. C
Responding to: ???'s previous message
Jan Waclawek said:
Cleanliness of a program (I dislike the term "code" as it refers to an unreadable text) is largely dependent on the programmer's style rather than the language of choice. It IS possible to maintain sturcture in asm, although it requires a lot of discipline.


Structure isn't so much the problem. The problem is you have a limited number of registers and so much of your code is used just loading registers with the right pointers, etc. prior to calling a file system API. It's a lot cleaner to write it in 'C' and let the compiler do that for you.

Like I've said from the beginning, it can be done in assembly. Obviously. But you yourself asked whether or not assembly was really the best choice for such a beast. It is a choice but I think 'C' would be a lot more comfortable for a file system regardless of whether it's FAT or any other file system.

Regards,
Craig Steiner


List of 17 messages in thread
TopicAuthorDate
File Handling using 8 bit Uc            01/01/70 00:00      
   Of course it's possible ...            01/01/70 00:00      
      Yes, of course - but in assembler?            01/01/70 00:00      
         Agreed            01/01/70 00:00      
            why mess?            01/01/70 00:00      
               FAT in assembly            01/01/70 00:00      
                  How did FAT come up?            01/01/70 00:00      
                     FATs popularity is largely given by...            01/01/70 00:00      
                     Craig cited it as an example            01/01/70 00:00      
                  I disagree            01/01/70 00:00      
                     Asm vs. C            01/01/70 00:00      
                        registers???            01/01/70 00:00      
                           Difference is...            01/01/70 00:00      
                        Actually, that was me            01/01/70 00:00      
                           Oops            01/01/70 00:00      
   If you're not determined to use FAT12 or 16            01/01/70 00:00      
   Conclusion?            01/01/70 00:00      

Back to Subject List