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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/27/11 21:35
Read: times


 
#184403 - You missed my point again
Responding to: ???'s previous message
Per Westermark said:
Richard Erlacher said:
That's only true if the evaluation compiler puts the code where it can actually run on the target. That is, after all, the issue that initiated this discussion.

Doesn't matter if I have to use a processor with more code space when evaluating the compiler.

The goal of evaluation is to find out if the compiler is good. It will be good whatever 8051 chip you use, since they all use the same instruction set.

I don' agree. If you want to evaluate the timing of a particular module, one small enough to run in the 2kB space, you need to run it on the target, else you need tools to evaluate the timing automatically under simulation, and those tools are even scarcer than "good" compilers. The easy, quick, simple and deterministic way to do this is to run the code on the target MCU. Further, you have to be able to load other modules with which the one of interest has to interact, else your evaluation will be little more than an arbitrary value judgment.

An evaluation version that allows the code to be placed at any location would mean that a user only making use of chips with 4kB of code space never needs to buy any commercial version of the compiler, so it really is important for the compiler vendor to give them an incentive to switch from the evaluation version to a bought version.

Richard said:
Nobody's discussing "ARM-class" processors at this point. I know ARM would like to supplant the 805x's but there are places where they'll NEVER fit.

But you missed the important note here, that I gave in the next paragraph (quoted below): lots of embedded code is more or less one-to-one between source lines and peripherial accesses. So not much need for any optimization. We do not want the compiler to remove writes to our UART transmit registers or reads from GPIO pins. And the compiler may not change the order.

Richard said:
But even more importantly - the critical part of code is likely to contain lots if GPIO accesses, where there is a one-to-one between source lines and hardware accesses. Exactly how can a compiler fail when there isn't anything to optimize?

I'm not sure optimization is the issue. Compilers from different vendors produce code that runs at different rates, uses differing volumes of code space, uses more or fewer resources ...

But that can be evaluated within 4kB of code space for an 8051 compiler.

Just how would YOU do it without running it on the target MCU? Would it be anything more than your expert opinion?

Richard said:
After being repeatedly lied-to by the KEIL people, not to suggest they're the only ones, and probably as much out of ignorance as out of evil intent, I've nearly given up on trying to deal with software vendors.

Strong claim from you. Care to back up that with some examples of how Keil staff have lied to you?


I'll give you one that stands out ... When I asked about precisely simulating the address-mode switching in the DS89C420, about a decade ago, the tech-droid with whom I was speaking told me that it had been proven to be impossible. The guy said that it was impossible to tell when the timing effects took place, hence, it couldn't be simulated.

I know better, as the device is entirely deterministic in its operation, and started designing my own simulator, which effort was later abandoned because it's easier to hook the circuit up to the logic analyzer and observe the timing there. Of course, the code was, by that time, already written in ASM.

I've mentioned this particular matter before. I know a bit about simulators, having managed to get through grad school by doing little other than writing or modifying simulators. I doubt simulation has changed much since then. It's like math. It's the same process and language. What worked then works now ... maybe even better, but it still works.

RE


List of 53 messages in thread
TopicAuthorDate
Linking C programs with Keil evaluation            01/01/70 00:00      
   Eval Tools.            01/01/70 00:00      
      That makes sense            01/01/70 00:00      
         It's not that much more useable            01/01/70 00:00      
            Work-around for evaluation version limitations?            01/01/70 00:00      
            Marked -1            01/01/70 00:00      
               I'm not so sure you're right here ...            01/01/70 00:00      
                  Irrelevant if people have ideas - should they be debated?            01/01/70 00:00      
                     There's a reason I haven't done it ...            01/01/70 00:00      
                        Would not represent a valid evaluation            01/01/70 00:00      
                           Wait a minute ... You've got this wrong ...            01/01/70 00:00      
                     One question            01/01/70 00:00      
                        What about the guy who simply wants to evaluate the product?            01/01/70 00:00      
                           sometimes coding situations and requirements differ            01/01/70 00:00      
                        How would you like it?            01/01/70 00:00      
                           That's not what I'm asking them to do            01/01/70 00:00      
                              A message from the OP.            01/01/70 00:00      
                                 I don't supply the compiler ...            01/01/70 00:00      
                        Wrong view on evaluation tools            01/01/70 00:00      
                           as I've said before, where you sit determines what you see            01/01/70 00:00      
                              Still failing to recognize reason for hole in code map            01/01/70 00:00      
                                 You missed my point again            01/01/70 00:00      
                                    Simulate or use Logic Analyser            01/01/70 00:00      
                                       ramblings            01/01/70 00:00      
                                       Using evaluation software and hardware            01/01/70 00:00      
                                          The above would be true if....            01/01/70 00:00      
                                             You don't seriously believe that, do you?            01/01/70 00:00      
                                                A thief is a thief            01/01/70 00:00      
                                                   Indeed...            01/01/70 00:00      
                                                   FIrst of all, I don't advocate theivery            01/01/70 00:00      
                                                      and more mumbo jumbo in the reply            01/01/70 00:00      
                                                      Can _you_ not read debugger output?            01/01/70 00:00      
                                          8255            01/01/70 00:00      
                                             Yes, but they're still shipped on some 805x trainer boards            01/01/70 00:00      
                                             Just sayin'            01/01/70 00:00      
                  Square Wheels for the Car            01/01/70 00:00      
                     I disagree ... not that that should surprise anyone            01/01/70 00:00      
                        eval and evaluation            01/01/70 00:00      
                           Yes, if only they were useful ...            01/01/70 00:00      
      Also "LPC900 Studio"            01/01/70 00:00      
         They all seem crippled            01/01/70 00:00      
            comments            01/01/70 00:00      
            They all seem crippled            01/01/70 00:00      
               Yes ... SDCC ... the obvious solution            01/01/70 00:00      
                  what's obvious about it            01/01/70 00:00      
                     Why not?            01/01/70 00:00      
                        reasons            01/01/70 00:00      
                           Unfortunately            01/01/70 00:00      
                              re Keil            01/01/70 00:00      
                                 15 years ago?            01/01/70 00:00      
                                    OK, maybe not            01/01/70 00:00      
            reasonable price            01/01/70 00:00      
            raisonance is 4k with no code offset            01/01/70 00:00      

Back to Subject List