Hi,
I just did some tests with the format and print libraries on a board with an LCD and a serial intetrface. First I replaced my own hex formatting routines by format_byte_hex() to show something on the LCD. It caused a growth of program memory usage of about 200 words, which is a significant difference! Then I replaced these by print_byte_hex() and that gave a growth of about 100 bytes. Still significant but much better than format! And this is for only 3 calls to format_byte_hex(). In all cases the compiler reported stack usage 6 of 8, so it is probably not in the calling overhead. Maybe with some 'pragma inline' statements the stack usage could be reduced (at the cost of memory usage!?). I don't know if memory usage was part of your argumentation to give print.jal a higher ranking than format.jal, but it is certainly part of mine! Another argument is the more extensive functionality. Regards, Rob. -- Rob Hamerling, Vianen, NL (http://www.robh.nl/) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
