piclist 2001\03\02\111321a >
Thread: Switch / If Statement revisited
face BY : Mike Mansheim email (remove spam text)

My $0.02 on C vs. asm:

- I'm not a consultant - I work for a company and my boss wants
 stuff written in 'C' so others down the road can more easily
 see what is going on.  I just use inline asm when necessary.
 I have to admit that it tends to be easier to get the big
 picture when looking at C, although I don't ever like trying
 to figure someone else's code out.  Olin style commenting is
 the best bet in either case.
- I absolutely don't buy the portability argument for C.  There
 is too much interaction with i/o ports, timers, interrupts
 and other peripherals & hardware for code to be portable to
 anything other than another pic - and then C doesn't buy you
 anything anyway.
- which one is quicker to write depends entirely on the nature
 of what needs to be written, as we've seen with the complex
 math statement.  I think I saw a statement from Andrew Warren
 once that he was the fastest asm programmer he knew, yet
 there were still some things he could do faster in C.

http://www.piclist.com hint: To leave the PICList


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) Switch / If Statement revisited

month overview.

new search...