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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/19/07 23:01
Modified:
  05/19/07 23:02

Read: times


 
#139545 - Tables in code space vs data space
Responding to: ???'s previous message
Erik Malund said:
If you guys want to argue about off-chip resources, go ahead. It won't help speed up anyone's code, though.
Are you saying that you can not write (in)efficient code for accessing external resources?

No ... it's easy enough to do it for either.

I'm just pointing out that the original context in which I pointed out those instructions which are useful for table lookups but which work only in code space, and not in XDATA, are part of the original discussion, but not this one which has wandered off into XDATA. Your assertions are correct. You can, indeed store both table and other data in XRAM. You can't store code there, though, and the comment I made about where you would likely store tables. I don't know how big an advantage storing tables in XRAM as oposed to code space would be, regardless of whether the code space is internal or external, but it offers those additional instructions that are really handy for table lookups.

BTW, with which MCU are you using those DALLAS BBRAMs? How much code space does it have?

The thread is "How to speed code?" NOT "how to use internal resources efficiently".

As a matter of fact I once had a thingy with two of the battery backed Dallas NVRAMS one was the bootloader with the remainder free, the other was the app which used the space above the bootloader as XDATA. To boot, switch the two memories, to run, switch back.

Yes, I have one like that on the bench right now but only using one BBRAM. I dump 'em into fast SRAM so they'll be quick enough for my MCU.

Erik


I doubt you'd use up your internal code space unless you already had tables in it.

RE



List of 43 messages in thread
TopicAuthorDate
How to speed code?            01/01/70 00:00      
   How did you come to that bizarre idea...            01/01/70 00:00      
      bizarre!?            01/01/70 00:00      
         I am a C-hater, remember...            01/01/70 00:00      
      Smaller, Faster            01/01/70 00:00      
   Is that true??            01/01/70 00:00      
   Often mutually exclusive...            01/01/70 00:00      
   Take my contribution with a grain of salt.            01/01/70 00:00      
      http://www.8052.com/users/disasm/            01/01/70 00:00      
   what compiler?            01/01/70 00:00      
   Data types            01/01/70 00:00      
   Getting the least            01/01/70 00:00      
   My Two Cents            01/01/70 00:00      
      Turn in your Programmer's ID Card.            01/01/70 00:00      
         heheh...yeah            01/01/70 00:00      
         SJMP            01/01/70 00:00      
   Comments            01/01/70 00:00      
   How to speed code?            01/01/70 00:00      
   a couple of \'rules\'            01/01/70 00:00      
      More on Erik's Rules            01/01/70 00:00      
         a comment            01/01/70 00:00      
         PDATA            01/01/70 00:00      
            don't forget about @DPTR access to CDATA            01/01/70 00:00      
               but            01/01/70 00:00      
                  WHAT??? You mean I have it too? Dystypia?            01/01/70 00:00      
                     Enginnering is all about the tradeoffs            01/01/70 00:00      
                        two places where you REALLY can make an impact            01/01/70 00:00      
                           b) buffer at 256 byte boundary            01/01/70 00:00      
                              Alignment            01/01/70 00:00      
                              you did'nt hear ?            01/01/70 00:00      
               Another \"but\"            01/01/70 00:00      
                  it is, after all, quicker            01/01/70 00:00      
                     Errr...            01/01/70 00:00      
                        perhaps, but it has to "live" somewhere.            01/01/70 00:00      
                           You\'re assuming...            01/01/70 00:00      
                              confirming Andys statement            01/01/70 00:00      
                                 We WERE discusisng 805x ...            01/01/70 00:00      
                                    well, does it not?            01/01/70 00:00      
                                       Tables in code space vs data space            01/01/70 00:00      
                                          Philps XA, the best "16 bit '51"            01/01/70 00:00      
                                             Maxim/Dallas DS89C450            01/01/70 00:00      
   most compilers            01/01/70 00:00      
      Thanks            01/01/70 00:00      

Back to Subject List