Re: C or Assembly
- From: Sambo <sambo@xxxxxxxx>
- Date: Fri, 03 Mar 2006 18:49:10 -0500
Abstract Dissonance wrote:
Which is better to program in, in general, for Microchip's pics; C or Assembly? I am personally more fond of assembly but after trying a little using microchips "31 instructions" its a bit daunting. I really don't want to waste my time extending the instruction set just cause they want to hype it up with making it small as possible. Not sure why the stopped at 31... "Only 5 easy instructions to learn!!!".
Are there any drawbacks to using C(besides bloating?)?
While I don't mind using assembly I know that I will just end up making many macros to do what I want and it will basicaly end up as more of a HLL anyways so I probably should just go with C from the start. I'm mainly used to Masm syntax and semantics anyways and Microchip's synatic can be strange at times(and annoying when you only have one register to work with(I mean "W").
From glancing at some C code it seems much easier to do things like setting "File Registers" and such(I definately hate the INDR method for working with "pointers") but I should be able to accomplish that with a macro(assuming they have good macro functionality which I haven't checked out yet).
Thanks,
Jon
If somebody warned me about the hardships of comparing two values, I might have at least considered a C compiler, other than that...
Cheers
.
- References:
- C or Assembly
- From: Abstract Dissonance
- C or Assembly
- Prev by Date: Re: antenna power feed
- Next by Date: Timing diagram understanding....
- Previous by thread: Re: C or Assembly
- Next by thread: Re: where to buy a house/device current meter?
- Index(es):
Relevant Pages
|