>Michael Rigby-Jones wrote: > > >>If you are writing time critical, or isochronous code, you >want to see >>where every cycle is being used. >-----Original Message----- >From: Vincent Vega [mailto:avalon991@YAHOO.COM] >Sent: 02 March 2004 13:24 >To: PICLIST@MITVMA.MIT.EDU >Subject: Re: [PIC]: How come relocatable asm code seems so uncommon? > > >Very true, still you can check the generated list file. >I don't know, I got so annoyed by paging and banking issues >that for me the linker is the only way. Perhaps if there >wasn't any relocatable code I wouldn't be using Microchip's >stuff anyway. I do recognise that everyone is a universe >apart, and there is no end to preferences from different >people. Many people produce much better code using absolute >code than others using relocatable code, and vice versa. The >tools are not what matters, but the man behing them, I think. >Don't you? Best regards VV Well said, and I agree totally. I also dislike banking and paging, one of the many reasons I started using a C compiler! However, if I was writing major projects, relocatable code would be the only sane choice IMO. However, in the increasingly rarer times that I use assembly, it's often for bit bashing something as fast as possible on a small PIC, often only a few hundred words of code. Similarly many projects and example code available for the PIC show how to use the PIC's architecture to acheive some impressive feat in as few cycles/words as possible. Using relocatable code in these cases dosen't bring the advantages it would with a larger project, but has the unfortunate side effect of PIC newbies never learning of the existance of relocatable code and the advantages it can bring. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads