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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/20/12 09:52
Read: times


 
Msg Score: 0
 -1 Off-Topic
 +1 Underrated
#185582 - So exactly what was the disagreement???
Responding to: ???'s previous message
I'm still waiting with interest for someone to pick up the ball and tell why they don't agree with my previous post.

Some architectures will be better to handle one C code construct while another architecture will better handle other constructs.

With a 8051 chip, we can have a single C statement that sets/clears a processor pin, and it will end up as an optimal match in assembler. Same when we assign values to the SFR to configure a peripherial.

Another processor may dislike immediate addresses but love register-indirect pointers with additional offset. So they will get optimum code when everything is accessed using a pointer to a structure mapping the individual SFR for the peripherial. The pointer access has zero cost, and the offsets are so small that they can be embedded directly in the access instruction.

But to be able to know what maps well and what maps badly, we just have to be able to read assembler output. Even if not able to write code, we must be able to see the amount of instructions, and recognize which instructions are expensive (such as giving memory access/pipeline stalls or a multi-clockcycle divide) and which large set of assembler instructions that could be reduced to just one or two if the original C code had described the problem in another way potentially removing a C language standard forced requirement for the compiler.

List of 49 messages in thread
TopicAuthorDate
interfacing with 93c66            01/01/70 00:00      
   Interfacing AT93CXXX Serial EEPROMs with AT89LP MCUs            01/01/70 00:00      
      Direct Links            01/01/70 00:00      
   interfacing ith93c66            01/01/70 00:00      
      Better Learn Both            01/01/70 00:00      
      How about the 8051 code library?            01/01/70 00:00      
         interfacing with 93c66            01/01/70 00:00      
            An exercise for the reader            01/01/70 00:00      
               interfacing with 93c66            01/01/70 00:00      
      Then you need to learn...            01/01/70 00:00      
         I disgaree            01/01/70 00:00      
            cheap fatty sausage            01/01/70 00:00      
               Understanding the mapping important            01/01/70 00:00      
                  out of context            01/01/70 00:00      
                  So exactly what was the disagreement???            01/01/70 00:00      
                     I agree with you            01/01/70 00:00      
                        Don't simplify to believe it's about fastest speed            01/01/70 00:00      
                        again            01/01/70 00:00      
                     true            01/01/70 00:00      
               Are you serious?            01/01/70 00:00      
                  also out of context            01/01/70 00:00      
               Missing the point!            01/01/70 00:00      
                  the full monte            01/01/70 00:00      
   interfacing with 93c66            01/01/70 00:00      
      And your work            01/01/70 00:00      
      plz check it            01/01/70 00:00      
      ,sometimes you have to be VERY specific            01/01/70 00:00      
      wrong strategy and many errors            01/01/70 00:00      
   interfacing with 93c66            01/01/70 00:00      
      why do you resist using external ram?            01/01/70 00:00      
         interfacing with 93c66            01/01/70 00:00      
            Payed support not good enough?            01/01/70 00:00      
               interfacing with 93c66            01/01/70 00:00      
                  Any Specific Reason for using...            01/01/70 00:00      
                     interfacing with 93c66            01/01/70 00:00      
                        please explain            01/01/70 00:00      
                        It is advisable to use alternate available....            01/01/70 00:00      
                           interfacing with 93c66            01/01/70 00:00      
                              Can you elaborate it ?            01/01/70 00:00      
                                 interfacing with 93c66            01/01/70 00:00      
                                    You give me your email-id            01/01/70 00:00      
                                       email id            01/01/70 00:00      
                                          Ok            01/01/70 00:00      
                  Wrong - you are just not responding to on-topic questions            01/01/70 00:00      
                  you've got plenty of suggestions            01/01/70 00:00      
                     Off-topic but Siemens/seconds...            01/01/70 00:00      
                     funny result            01/01/70 00:00      
                        Output            01/01/70 00:00      
   still waiting            01/01/70 00:00      

Back to Subject List