Author Topic: How much has Microchip missed by not having an open source compiler?  (Read 14006 times)

0 Members and 3 Guests are viewing this topic.

Offline CafeLogicTopic starter

  • Regular Contributor
  • *
  • Posts: 117
    • Cafe Logic
Re: How much has Microchip missed by not having an open source compiler?
« Reply #25 on: January 19, 2011, 12:25:06 am »
size doesnt matter... performance is. run the code in the mcu and record the speed of execution and report here.
unoptimized libraries/functions, whether algorithmitically or post compiled generated machine code, there should be some penalty in speed performance if its called thousands of time from say... in loop, for, while, iteration etc.

You guys are really a demanding bunch. If the application was performance sensitive, I wouldn't be using a PIC16. Furthermore, performance is generally going to follow code size with the obvious exceptions (in-lining, unrolling loops, etc.).  Just because I can't help myself, I did it anyway.

One iteration of the main loop with delays disabled is as follows:

PRO: 22,490 instruction cycles
PRO set to optomize for speed: 21,977 intruction cycles
LITE: 37,929 intruction cycles
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11712
  • Country: my
  • reassessing directives...
Re: How much has Microchip missed by not having an open source compiler?
« Reply #26 on: January 19, 2011, 07:50:35 am »
You guys are really a demanding bunch...
maybe its just me. sorry if i sound too software'side. i need to know the limit of what i'm paying, so thats what i usually did.

thanx for the analysis. so 37,929 - 21,977 = 15952 ops, @1MHz = 15ms. for user interface based app, thats nothing. but for speed critical, such as sampling app, that can be something. so thats my conclusion from Cafe's case. i'm not saying good or bad. i just try to give a concrete and absolute judgement. so YMMV. Cheers.
« Last Edit: January 19, 2011, 07:57:15 am by shafri »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14033
  • Country: gb
    • Mike's Electric Stuff
Re: How much has Microchip missed by not having an open source compiler?
« Reply #27 on: January 19, 2011, 09:31:15 am »
Quote
If the application was performance sensitive, I wouldn't be using a PIC16
All applications are performance sensitive to some degree - it's just a matter of scale.
If it's a low-volume product and you're not worried about cost, sure use a higher end part. For low-volume products then the time spent squeezing maximum performance from the cheapest processor is worthwhile.

   
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline arcom

  • Contributor
  • Posts: 42
  • Country: hr
    • Arc's Lab
Re: How much has Microchip missed by not having an open source compiler?
« Reply #28 on: January 19, 2011, 10:30:55 am »
What image do you get from a microcontroller range named "PIC" ?

What image do you get from an MCU range named tinyAVR, megaAVR and AVR XMEGA?
To me they sound like something that came out of a Transformers movie or something from the trash Sci-Fi movies of the eighties.

It's just a name and as such, highly subjective due to language differences. For example, SE's new(ish) mobile phone called Kita doesn't mean much in english but in my language it stands for d*ck ;D (imagine that with the marketing words such as "Twist, tilt, turn, smash...")


As for the compiler, I don't think that Microchip missed anything. They have a fully functional free version with limited optimizations and a more powerful Pro version which costs money. You get what you pay for. Personally, I'm tired of the "open source" cr*p and a huge amount of people who not only expect everything for free but also expect to get the source code and whine like babies when they don't get it.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10270
  • Country: nz
Re: How much has Microchip missed by not having an open source compiler?
« Reply #29 on: January 19, 2011, 10:43:28 am »
What image do you get from an MCU range named tinyAVR, megaAVR and AVR XMEGA?
To me they sound like something that came out of a Transformers movie

haha i wouldnt know about that, i never did watch transformers as a kid, it just seemed silly to me.

I find the letters AVR sound fast and powerful (probably because its similar to TVR) :P
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14033
  • Country: gb
    • Mike's Electric Stuff
Re: How much has Microchip missed by not having an open source compiler?
« Reply #30 on: January 19, 2011, 10:42:41 pm »
For low-volume products then the time spent squeezing maximum performance from the cheapest processor is worthwhile.
you mean hi-volume?

Oops - yes - edited while typing & forgot to change...!
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf