A programmer can write and test X number of lines of code a day. A multiply routine in c is one line, in assembler it is many lines. When someone is paying money for program, these lines/times add up. And it is said that 10% of the code runs 90% of the time. So if need speed, find the 10% and optimize it. Bill ----- Original Message ----- From: "William Chops Westfield" To: "Microcontroller discussion list - Public." Sent: Wednesday, October 26, 2005 11:50 PM Subject: Re: [PIC] Any advantage of using assembler? > > On Oct 26, 2005, at 7:47 PM, Chen Xiao Fan wrote: > > > The same questions to JAL. I hear that it is quite inefficient > > regarding banking and page selecting but ... > > The key thing to understand is that the added efficiency you'd probably > get by using assembler or a more expensive compiler usually isn't > needed. > I mean, all sorts of people were doing all sorts of useful things with > BASIC Stamps running slow interpreted basic with rather severe limits on > program size. Think of a compiler as a faster basic stamp instead of a > slower assembler and you'll be getting the idea. (especially true if > you can make use of useful libraries that come with the compiler. Jal > has a lot of useful libraries. (so to speak.)) > > BillW > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist