??? 08/09/09 14:41 Read: times |
#168276 - I have to agree ... evaluation takes time ... Responding to: ???'s previous message |
Erik Malund said:
R:So far, it's been much easier to use ASM, specifically a macroassembler, with my library of macros, which I understand well enough to equal the comparable intrinsics of any compiler, and, as a result, I know the generated code is as fast and as dense as I require.
E:Finally the cat came out of the bag R:As for the cat ... I have no idea what you mean you "understand well enough" the above and do not, and have no intention of getting to "understand well enough" C etc. Yes, I know what my macros do, how much code they contribute, how much time they require, and, since that's the case, and I already have them on hand, there's no need for a compiler. That may be so, but why do you then argue with those that do have a need for a compiler I'd take a look at a compiler if there were a reasonable way to evaluate it. That doesn't guarantee I'd buy it, though. It would have to be advantageous in some meaningful way for me to buy one. T.T.T. and you do not want to. If it (as it did for me) takes a long time to get "up to speed" in C before the advantages shine, then, of course it is easy for you to just say "this is not worth it" I'd take a look at a compiler if there were a reasonable way to evaluate it. The snake bites its tail here, if you are not fluent in C (i.e. have worked for years with 'some' compiler) you can not evaluate. Another issue here is that 'getting fluent' in C is almost impossible on a micro, it is many times faster on a PC, which is why I always recommend learning C (using Kochans book) on a PC before even writing the first C line for a micro. Erik T.T.T. Put up in a place where it's easy to see the cryptic admonishment T.T.T. When you feel how depressingly slowly you climb, it's well to remember that Things Take Time Piet Hein You've guessed wrong as to my use of 'C'. I use it on the PC whenever necessary. I don't write much on the PC in ASM, though I do write short test fixture exercises in ASM. The stuff that talks to hardware is nearly always in ASM, but that's easily rolled in to a 'C' program. I don't believe I'll understand the functions provided by a compiler until I've thrashed 'em quite a bit. That's one thing that takes time. What I would consider a substantial evaluation is regeneration of an entire completed project's firmware, already written in some language, and satisfactorily funcitonal, in that it meets all requirements as witnessed by passing all acceptance testing. If the result successfully meets those tests, that's step 1. If it is not substantially larger, that's step 2. If it is not substantially slower, that's step 3. If it's significantly quicker generating the HLL source, that's a plus. If it's significantly quicker verifying the code, that's a plus, though that's not easy to verify on an already-proven project. This, of course, says nothing about the simulator and other features of the compiler, depending on what features it purports to provide. If the doc's were adequate, and one could adequately evaluate a compiler, no matter what the HLL, the first thing I would do is to verify that the documentation accurately reflects what the software is does as observable from the user's viewpoint. If that fails in any way, I'd stop. Then I'd have to try a considerable number of different application techniques to determine whether they work adequately, particularly the interaction between HLL and ASM functions. That's where regenerating an already-proven project comes in. I'd probably have to make it a fairly large one, or, perhaps, several of them just to "cover all the bases" as far as techniques are concerned. Then, of course, I'd have to examine the debugger and the simulator, if there is one. If it covers the MCU types in which I'm interested, I'd consider it, and if not, well ... then I wouldn't. If they want me to pay for a simulator, then it has to simulate the parts I want to use. I'm certainly not going to pay for one I can't use or won't because of lack of device support. Frankly, if someone actually produced a stand-alone simulator for the 805x core with a library of MCU-specifics, one that could simulate interactions with external hardware, particularly scheduled interrupts, I'd consider it as a standalone product. I've even considered, at times, writing one myself, but I don't use 805x much ... Only when I'm working follow-on for stuff done in the late-'70's and early '80's on client-specified hardware ... aside from my "mental masturbation" projects of more recent vintage. After all, I believe that all these "RESET" problems are really power supply issues, among other things, hence, I can't get to the bottom of that if I completely ignore 805x. RE |