piclist 2008\07\05\090114a >
Thread: Code packing
face picon face BY : email (remove spam text)(Olin Lathrop)

Jinx wrote:
> every project/product I've ever done for the last dozen years has
> been for a particular chip,

Sure, but I bet there is a lot of common code between project.  How many
times have you written a interrupt driven UART routine, set up timer 2 for
periodic interrupts, or the same interrupt enter/exit code?  With
relocatable mode these all go into separate modules so the local symbol
names can't collide.

Doesn't it bother you that assumptions about pin usage are scattered around
the code?  Hasn't a project ever changed so that pin usage got reassigned.
Then you had to go thru the TRIS and PORT initialization and analog
peripheral disabling or setup, and all the rest of the code that touched a
pin.  Wouldn't it be nicer to symbolically define each pin once then have
the rest of the code use those symbols?

> and absolute code built with MPASM
> has never been a problem.

How would you know?  Problem as apposed to what?  You are not seeing the
problems because you're used to it and that's how it's always been.  You
won't realize how many problems you were having until you no longer have to
deal with them.

Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.
<012801c8de9f$8420af40$0300a8c0@main> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Code packing

month overview.

new search...