Click here to Skip to main content
15,886,806 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
Generalrebooting my cable modem: why? Pin
raddevus31-Mar-20 9:13
mvaraddevus31-Mar-20 9:13 
GeneralRe: rebooting my cable modem: why? Pin
PIEBALDconsult31-Mar-20 9:15
mvePIEBALDconsult31-Mar-20 9:15 
GeneralRe: rebooting my cable modem: why? Pin
raddevus31-Mar-20 9:16
mvaraddevus31-Mar-20 9:16 
GeneralRe: rebooting my cable modem: why? Pin
Richard MacCutchan31-Mar-20 21:13
mveRichard MacCutchan31-Mar-20 21:13 
GeneralRe: rebooting my cable modem: why? Pin
Maximilien31-Mar-20 9:24
Maximilien31-Mar-20 9:24 
GeneralRe: rebooting my cable modem: why? Pin
raddevus31-Mar-20 9:28
mvaraddevus31-Mar-20 9:28 
GeneralRe: rebooting my cable modem: why? Pin
Kris Lantz31-Mar-20 9:38
professionalKris Lantz31-Mar-20 9:38 
GeneralRe: rebooting my cable modem: why? PinPopular
kalberts31-Mar-20 9:49
kalberts31-Mar-20 9:49 
My first thought as well.

Then: It is my honest opinion that firmware should not use dynamic allocation of memory at all. It has a well defined job to do; the memory requirements for all tasks should be possible to calculate in advance. That is, the code and data should be structured so that it is possible to calculate all memory needs in advance, and to set off that memory at compile time.

There are reasons why Fortran (with no dynamic memory allocation, and for many versions without a stack - no recursion possible) held up for so long. One of the reasons was that is was reliable wrt. memory allocation: It would never crash due to a failing new() or a too deep recursion.

Ada, made for military robustness, did allow recursion, but only if a static code analysis could calculate the deepest nesting level and stack requirement.

CHILL, created for embedded code in telephone switches, required that you marked functions that are to be called recursively. I don't think it made any difference in generated machine code; it was just a way for the compiler to raise a red flag: Here you make a recursion to a function that is not marked as RECURSIVE. Look out - maybe you will run into stack issues.

Embedded code is executed in an environment where you don't have the same facilities as for desktop applications. Often, less resources are available; you can't just let the stack grow to fill those 16 GBytes of RAM. So, the programmer cannot be allowed the same freedom as a standard application developer. Far more restrictive use of dynamic memory and stack are among the limitations an embedded developer should accept.

I know well that this is certainly always reality in embedded code.
GeneralRe: rebooting my cable modem: why? Pin
raddevus31-Mar-20 10:03
mvaraddevus31-Mar-20 10:03 
GeneralRe: rebooting my cable modem: why? Pin
AReady31-Mar-20 23:58
AReady31-Mar-20 23:58 
GeneralRe: rebooting my cable modem: why? Pin
enhzflep1-Apr-20 0:45
enhzflep1-Apr-20 0:45 
GeneralRe: rebooting my cable modem: why? Pin
kalberts1-Apr-20 7:24
kalberts1-Apr-20 7:24 
GeneralRe: rebooting my cable modem: why? Pin
raddevus1-Apr-20 4:06
mvaraddevus1-Apr-20 4:06 
GeneralRe: rebooting my cable modem: why? Pin
kalberts1-Apr-20 6:43
kalberts1-Apr-20 6:43 
GeneralRe: rebooting my cable modem: why? Pin
AReady1-Apr-20 23:57
AReady1-Apr-20 23:57 
GeneralRe: rebooting my cable modem: why? Pin
kalberts2-Apr-20 1:10
kalberts2-Apr-20 1:10 
GeneralRe: rebooting my cable modem: why? Pin
AReady2-Apr-20 9:31
AReady2-Apr-20 9:31 
GeneralRe: rebooting my cable modem: why? Pin
Greg Utas31-Mar-20 10:28
professionalGreg Utas31-Mar-20 10:28 
GeneralRe: rebooting my cable modem: why? Pin
kalberts1-Apr-20 7:35
kalberts1-Apr-20 7:35 
GeneralRe: rebooting my cable modem: why? Pin
Greg Utas1-Apr-20 7:47
professionalGreg Utas1-Apr-20 7:47 
GeneralRe: rebooting my cable modem: why? Pin
obermd31-Mar-20 16:30
obermd31-Mar-20 16:30 
GeneralRe: rebooting my cable modem: why? Pin
kalberts1-Apr-20 8:00
kalberts1-Apr-20 8:00 
GeneralRe: rebooting my cable modem: why? Pin
dandy7231-Mar-20 10:38
dandy7231-Mar-20 10:38 
GeneralRe: rebooting my cable modem: why? Pin
raddevus31-Mar-20 11:54
mvaraddevus31-Mar-20 11:54 
JokeRe: rebooting my cable modem: why? Pin
Dar Brett1-Apr-20 0:48
Dar Brett1-Apr-20 0:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.