CBarn24050 wrote:> Bob Stephens wrote: > > CBarn24050 wrote: > > > > > Hi Bob, can you actually justify that remark? Got any actual > > > numbers from real applications? > > > > 0Xfffe > > 3.1415926 > > 0xAAAA >> 1 > > > > to name a few. > > so thats a no then is it?No, it is a resounding yes. He actually supplied the numbers (and quite good numbers too). What I did here was supply some of the missing quotations and attributions which CBarn24050 totally omitted from all his messages. Obviously he expects all readers to be clairvoyant and/or willing/able to look up previous messages in the thread to save him the trouble of quoting properly. -- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!
Using C to program the 8051 family
Started by ●January 1, 2004
Reply by ●January 3, 20042004-01-03
Reply by ●January 3, 20042004-01-03
In article <20040102221603.26263.00002249@mb-m06.aol.com>, CBarn24050 wrote:>>> Hi Bob, can you actually justify that remark? Got any actual >>> numbers from real applications? >> >>0Xfffe >>3.1415926 >>0xAAAA >> 1 >> >>to name a few. > > so thats a no then is it?It's a joke, I say it's a _joke_ son. Pay attention when I'm talking to you, boy! [That boy's about as sharp as a bag of wet mice.] (No, he probably won't catch that one either -- I keep pitching 'em and he keeps missing 'em.) -- Grant Edwards grante Yow! I want the presidency at so bad I can already taste visi.com the hors d'oeuvres.
Reply by ●January 3, 20042004-01-03
CBarn24050 wrote:> Well Mark when I got it it was supposed to be state of the art I imagine > in another 5 years you'll be saying the same thing about the current Kiel > package. For the sort of things I do I can't see me going back to the > 8051.What sort of things would those be then? Ian
Reply by ●January 3, 20042004-01-03
Hi Ian, at the moment I am doing a controller for single phase induction motors. The unit controls the startup and optimises the power factor to save energy under light load.
Reply by ●January 3, 20042004-01-03
CBarn24050 wrote:> Hi Ian, at the moment I am doing a controller for single phase induction > motors. The unit controls the startup and optimises the power factor to > save energy under light load.What microcontroller are you using and why would you not consider an 8051 for this job? Ian
Reply by ●January 3, 20042004-01-03
On Fri, 02 Jan 2004 02:19:03 +0000, Steve at fivetrees wrote:> "CBarn24050" <cbarn24050@aol.com> wrote in message > news:20040101200157.15398.00002261@mb-m04.aol.com... >> Hi, I would think again, switching to another language won't make your > problems >> dissapear you just get some new ones. If C is the right chioce for your > project >> then the 8051 is allmost certainly not the right processor. > > I disagree. > > Taking the second point first: C is absolutely fine for an 8051. Ideal, > even.I couldn't disagree more. C may be fine for larger platforms but it's not just a pain in the Bush for an 8051 but can actually be dangerous if you forget to turn the optimizer off. Additionally C is a compiled language which leaves the programmer open to a number of dangers. You must either trust the compiler or learn to use a disassembler, have the deductive powers of Mycroft Holms or use an ICE, and beat yourself with a rubber hose instead of using an interpreted language to debug by. -- Regards, Albert ---------------------------------------------------------------------- AM Research, Inc. The Embedded Systems Experts http://www.amresearch.com 916.780.7623 ----------------------------------------------------------------------
Reply by ●January 3, 20042004-01-03
On Fri, 02 Jan 2004 12:42:06 -0500, Mark wrote:> > "CBarn24050" <cbarn24050@aol.com> pontificated in message > news:20040102043821.04155.00002315@mb-m29.aol.com... >> Hi, I have yet to see a project written in C where the 8051 was the best > choice >> on either performance or price. C is to the 8051 what windows is to a > pentium. >> Of course is your poduct doesn't need much performance then allmost > anything >> would do. > > It seems to me you have never developed any projects using the 8051 and C > language, or just aren't very good at it.Please don't turn this newsgroup into another flaming IRC session. Implying negative attributes to someone you disagree with is poor debating practice and precludes a respectful response. While I think CBarn24050 may have been too terse I agree with his fundamental position, C is inappropriate for 8-bit micros in general. Be aware that C and assembler are not the only two choices. In some applications Basic is even appropriate while we use Forth for it's inherent debuggability. If that's a word. -- Regards, Albert ---------------------------------------------------------------------- AM Research, Inc. The Embedded Systems Experts http://www.amresearch.com 916.780.7623 ----------------------------------------------------------------------
Reply by ●January 3, 20042004-01-03
"Albert Lee Mitchell" <albmit@albert.amresearch.com> wrote in message news:pan.2004.01.03.20.02.24.660546@albert.amresearch.com...> On Fri, 02 Jan 2004 12:42:06 -0500, Mark wrote: > > > > > "CBarn24050" <cbarn24050@aol.com> pontificated in message > > news:20040102043821.04155.00002315@mb-m29.aol.com... > >> Hi, I have yet to see a project written in C where the 8051 was thebest> > choice > >> on either performance or price. C is to the 8051 what windows is to a > > pentium. > >> Of course is your poduct doesn't need much performance then allmost > > anything > >> would do. > > > > It seems to me you have never developed any projects using the 8051 andC> > language, or just aren't very good at it. > > Please don't turn this newsgroup into another flaming IRC session. > Implying negative attributes to someone you disagree with is poor debating > practice and precludes a respectful response. > > While I think CBarn24050 may have been too terse I agree with his > fundamental position, C is inappropriate for 8-bit micros in general. Be > aware that C and assembler are not the only two choices. In some > applications Basic is even appropriate while we use Forth for it's > inherent debuggability. If that's a word.While I am not a embedded guy by far, but I have done my share of 8051 projects. Could you elaborate on why you don't think C is appropriate for this family? I have used Assembler, but that was happily only a short time before I came to know the Keil compiler. I would anytime pay a price in a little faster microcontroller with more memory in order to get the project done instead of using my time on Assembler programming Mind you my projects have predominately included control systems that needed textoutput (nice and easy with sprintf) and floating point calculus... Cheers Klaus Cheers Klaus
Reply by ●January 3, 20042004-01-03
Albert Lee Mitchell wrote:> On Fri, 02 Jan 2004 02:19:03 +0000, Steve at fivetrees wrote: > >> "CBarn24050" <cbarn24050@aol.com> wrote in message >> news:20040101200157.15398.00002261@mb-m04.aol.com... >>> Hi, I would think again, switching to another language won't make your >> problems >>> dissapear you just get some new ones. If C is the right chioce for your >> project >>> then the 8051 is allmost certainly not the right processor. >> >> I disagree. >> >> Taking the second point first: C is absolutely fine for an 8051. Ideal, >> even. > > I couldn't disagree more. C may be fine for larger platforms but it's > not just a pain in the Bush for an 8051 but can actually be dangerous if > you forget to turn the optimizer off. > > Additionally C is a compiled language which leaves the programmer open to > a number of dangers. You must either trust the compiler or learn to use a > disassembler, have the deductive powers of Mycroft Holms or use an ICE, > and beat yourself with a rubber hose instead of using an interpreted > language to debug by. >None of these comments is 8051 or 8bit micro specific. Ian
Reply by ●January 3, 20042004-01-03