--- Sebastien Lelong <[email protected]> schrieb am Fr, 7.1.2011:
Von: Sebastien Lelong <[email protected]> Betreff: Re: [jallib] Re: Update to print.jal - or not? An: [email protected] Datum: Freitag, 7. Januar, 2011 15:00 Uhr Hi Kiste, Thanks for your investigations. Maybe it's too late, but could you provide your sample programs so we share the same testing code ?Of course, see attachments if I don't miss them ;-) And, thanks to Matt's nice stopwatch lib, I have average execution times: current byte 7417 cycles new byte 140 cycles current word 12488 cycles new word 431 cycles The execution time, as I expected, decreased enormously, but the benefit decreases with increasing variable sizes. Still, even with dwords I expect the new variant to be more speedy. Maybe print_(s)word_dec() procedures could use current _print_universal_dec -- handles dword -- whereas other print_ procedures could use another engine. Conditional compilation would help select one or the other. Not sure if it makes sense though... It could or could not make sense... If code size is a concern and you use both dwords and bytes, it would be best to use the current byte output procedure. Indeed, it would be hard to consider every possibilities. Still there should be something we could do, as a first step. As I previously said, we could try to monitor compiler performances by identifying some primitive features: if/then/else, case of, division, modulo, pragma inline and optimized proc calls. Counting "if" statements does not really lead to a usable value... if 5=6 -- 0 words of code if byte_var==8 -- 4 words of code if dword_var_1>dword_var_2 -- 18 words of code It is really complex. If some part of the program is, on external conditions, only very rarely executed it might do no harm at all if it is executing very slowly. Simulation can give some hints, but it can e.g. not guess the state if input pins or ADC values. Greets, Kiste -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
print_cheap.jal
Description: Binary data
print_test.jal
Description: Binary data
