News for hackers. Stuff that matters.
Re:What happens before main() is executed in C and why is it... by monocasa on Friday May 04, 2018 @06:37PM (#16998991)
If it's not, you can drop the cost. There are AVR like 8051s that you can get for 10 cents.
Re:What happens before main() is executed in C and why is it... by thethirdone on Friday May 04, 2018 @07:49PM (#16999347)
I can't find any 8051 less than 30 cents and I digikey sells attinys for 17 cents.
Re:What happens before main() is executed in C and why is it... by falcrist on Friday May 04, 2018 @08:17PM (#16999467)
I haven't confirmed what you've said yet, but it makes sense since 8051/8052 MCUs are generally used for their compatibility with legacy code.

I've been working on an agricultural spray controller that uses some silab part only because there is already assembly code written for it. The company that sells the controller doesn't want to spend the time rewriting it in C and moving to arm or pic.

Re:What happens before main() is executed in C and why is it... by monocasa on Friday May 04, 2018 @09:00PM (#16999660)
> digikey

There's your problem. Digikey is only really meant for low volume.

Re:What happens before main() is executed in C and why is it... by imtringued on Saturday May 05, 2018 @11:47AM (#17002274)
That doesn't explain why you suggested a more expensive chip.
Re:What happens before main() is executed in C and why is it... by monocasa on Saturday May 05, 2018 @02:30PM (#17003090)
What's cheaper or not depends on your volume at that level.