|
Hah, you reminded me of some code I read where the guy did this BIG malloc() at startup...
Because he managed his own memory for some data structure he had.
It required Real-Time controller feedback, and different things writing to the memory.
But the takeaway was that various conditions, beyond his control, would fragment total memory, and his otherwise more "timely/smaller" malloc() calls would fail. Causing Abends/Hard Faults. And requiring resets.
This is where the "linux pride" of saying "my system has been running continuously for 640 days!" harkens back to. It used to be a positive sign. When software designs and hardware designs were more stable!
|
|
|
|
|
Yep.
I know of some of my real time embedded software that has been running continuously for over twenty years, with just ink tank swaps to keep it in consumables. Never use dynamic memory in real time projects!
Good grief, I just did the sums and that's over 7K days! I'm amazed the hardware has survived that long, particularly the ink side piping ... It's got to be brittle as heck by now ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
den2k88 wrote: whole embedded universe.
|
|
|
|
|
And if you have electronic experience you can pretty much write your own check!
|
|
|
|
|
And I'm missing that. Totally inept in electronics thanks to id-10t professor both in high school and University. Whatever I learnt has been on the job.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
I was lucky enough in my younger years to work with some electrical engineers that had the patience to help me. But I took a job here in FL 35 years ago that didn't require any electronic knowledge so I lost a lot over the years. But I picked it back up about 5 years or so ago and have tried to catch up...but I enjoy it so I take it at my own pace.
|
|
|
|
|
If you don't do something for a long time you seem to lose the necessary skills. For instance, after living and working in Germany for 6 years I became fluent in German. Then I moved to the US, hardly spoke a word of it for 25+ years and now can hardly remember any of it. If I hear it in a movie I get this vague feeling of recognition, but the detail has gone.
However, I got on a bicycle after 30 years of no bike riding and could immediately ride it with no problems. Go figure!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
I will probably learn a lot more now that my dad got into rail modelling and is biting more than he can chew - he's a great electrician but knows nothing of digital programming. I got volountold to help him
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: volountold
+1
|
|
|
|
|
Most likely failed C programmers trying to make a living teaching.
|
|
|
|
|
I didn't, BASIC commodre & BBC (well Acorn Electron!), Only started with C when I had an Amiga and wanted do something that was a hugh 68K assembly job (possibly a raster colour bank). C was the first language at Uni, which is probably where these comments, question come from. People learning to program by being taught, rather than peeking under the lid.
|
|
|
|
|
|
OriginalGriff wrote: Why are so many peopel ... Yeah, I agree. More peopel should learn ENGLISH as a first language...
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
English is my first language.
Spelling is about my fourteenth ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Would you rather learn to drive on a Tesla Model X or on a Subaru Impreza ?
|
|
|
|
|
|
Yep. Cheap, slow, and easy to manoeuvre.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I checked the price forn an Impreza not long ago. Way out of my pockets, sadly.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
I learned to drive on this one[^]. Everyone takes power steering for granted nowadays. You needed some muscles to turn the wheel back in the days.
|
|
|
|
|
Maybe they are people who want to figure out how computers really work without wondering what that guy behind the curtains is doing.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Read their questions and you'll see just how wrong you are ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Recent ones are clearly not that.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
hypothesis: peopel who post C-related QA questions here are the most confused, and/or least intelligent, peopel in the cohort of peopel (learning their first programming language) starting to learn C.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
It's the one true faith, the source, the key to enlightenment. JavaScript, C++, C#, Java, Typescript...guess where they all come from.
|
|
|
|
|
I initially thought the title and content of the comment were one and the same - part of joke masquerading as an examination. It's still more fun reading it that way
|
|
|
|