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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/06/07 22:09
Read: times


 
Msg Score: +1
 +1 Informative
#136774 - My reasoning
Responding to: ???'s previous message
Craig Steiner said:
But I would also say there's certainly great benefit in getting to know an architecture at a level that you can write an assembler or, better yet, a compiler.


Andy Neil said:
For the purpose of getting to know an architecture, I'd say that the assembler was the better option.
An Assembler has a direct 1:1 mapping from source instructions to machine instructions.

With a compiler, I'd have thought there'd be too many distractions from the detail of the high-level language, and its extra complexities...?


You're probably right about the complexities of the high-level language in writing a compiler. The reason I put more emphasis on the compiler is because while you can get to know the instructions perfectly fine writing an assembler, writing a compiler would force you to also think through how to use those instructions to do something useful.

In my opinion, you can write an assembler without actually having to understand the first thing about what an instruction really does. You just need to convert some text to some bytes and you don't have to have any understanding of the instructions themselves. To write a compiler, you need to know how and when to use those instructions to do whatever it is your compiler is compiling.

Actually, more accurately, it's probably writing the libraries that are linked into a compiled program that would be most useful for mastering an architecture. There'd be some benefit in writing the compiler, but most of the learning would probably be in writing the libraries. That's also the fun part, IMHO. :)

Regards,
Craig Steiner


List of 43 messages in thread
TopicAuthorDate
8051 opcodes            01/01/70 00:00      
   A disassembler?            01/01/70 00:00      
   Visit The Chart            01/01/70 00:00      
      answer            01/01/70 00:00      
         Text-based instructions?            01/01/70 00:00      
            Just a bit of semantics            01/01/70 00:00      
               Just a bit of spelling            01/01/70 00:00      
               We must have learned it differently            01/01/70 00:00      
                  I learned the same was as Joseph            01/01/70 00:00      
                     nobody disputes the definition of mnemonic            01/01/70 00:00      
                        Clarification?            01/01/70 00:00      
                           Late in the conversation            01/01/70 00:00      
                              Yes, we\'re getting lost ...            01/01/70 00:00      
                                 I DID find an assembler for me            01/01/70 00:00      
                                    Yes, that's a good one!            01/01/70 00:00      
                        I doubt it            01/01/70 00:00      
                           BIOS Code In Assembler            01/01/70 00:00      
                              even more a coincidence            01/01/70 00:00      
                                 Me too....            01/01/70 00:00      
                           in college...            01/01/70 00:00      
                              Yes, but was that for a BS degree?            01/01/70 00:00      
                                 yep            01/01/70 00:00      
                                 it's not exactly learning asm which is needed...            01/01/70 00:00      
                                    send me his resume            01/01/70 00:00      
                                       we have to teach him every day            01/01/70 00:00      
            .            01/01/70 00:00      
         I have to tell you an Assembler Story            01/01/70 00:00      
            Very true            01/01/70 00:00      
               Learning Is Great !!            01/01/70 00:00      
                  Why didnt you mention to them..            01/01/70 00:00      
                     I Discussed Endlessly            01/01/70 00:00      
                  I once wrote an assembler            01/01/70 00:00      
                     2 pieces            01/01/70 00:00      
                        well,            01/01/70 00:00      
                        Suggestions            01/01/70 00:00      
                        Why would you want to write your own?            01/01/70 00:00      
                     Me too            01/01/70 00:00      
               Compiler?            01/01/70 00:00      
                  My reasoning            01/01/70 00:00      
         SDCC (again)            01/01/70 00:00      
   Is this a continuation...            01/01/70 00:00      
      Must not be...            01/01/70 00:00      
         I think there's room for doubt            01/01/70 00:00      

Back to Subject List