> Please do a minimal test about the result of the modification (the
> space occupied by the code before and after the modification).

I new you would ask :) I also did some optimization. Without
optimizing the code may have taken more space.

BEFORE:

Compilation started at :8/12/2011 1:55:27 AM
jal 2.4o (compiled May  8 2011)
Compiler CommandLine:  g:\jalv2\compiler\jalv2.exe -no-codfile -s "g:
\jalv2\lib" -no-asm -no-variable-reuse -hex "g:\jalv2\sample\temp.hex"
"E:\jallib\sample\16f876a_tc77.jal"

Errors :0       Warnings :0
Code   :3940/65536    Data:136/3840  Hardware Stack : 4/31  Software
Stack :3704

AFTER:

Compilation started at :8/12/2011 1:38:26 AM
jal 2.4o (compiled May  8 2011)
Compiler CommandLine:  g:\jalv2\compiler\jalv2.exe -no-codfile -s "g:
\jalv2\lib" -no-asm -no-variable-reuse -hex "g:\jalv2\sample\temp.hex"
"G:\jalv2\sample\18f4620_tc77.jal"

Errors :0       Warnings :0
Code   :3746/65536    Data:133/3840  Hardware Stack : 4/31  Software
Stack :3707

not much difference, but save a few bytes. Both tests used serial port
instead of LCD.

I prefer to update over creating copies, otherwise someday we will
have 10 versions of this.

Matt.

On Aug 12, 1:52 am, vasile surducan <[email protected]> wrote:
> On Thu, Aug 11, 2011 at 2:10 PM, mattschinkel <[email protected]> 
> wrote:
> > Hey guys, I had a chance to hook up and test a TC77 temp sensor.
>
> > First thing I noticed is that it is a SPI chip but does not use the
> > SPI libraries. If nobody has any concerns, I wish to update it so it
> > may use SPI hardware or SPI software libs.
>
> Please do a minimal test about the result of the modification (the
> space occupied by the code before and after the modification).
> Sometime is better to have two different libraries for the same
> device. Why don't you let the TC77 as is and create a TC77-SPI
> compatible Jallib library instead?
>
> good luck,
> Vasile
>
>
>
> > -- Author: Eur van Andel, [email protected] Copyright (c) 2008
> > -- Adapted-by: Albert Faber
>
> > I'll add my name in "Adapted-by" field.
>
> > Matt.
>
> > --
> > 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 
> > athttp://groups.google.com/group/jallib?hl=en.
>
>

-- 
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.

Reply via email to