When to handle memory explicitly?

This is a discussion on When to handle memory explicitly? within the C++ Programming forums, part of the General Programming Boards category; But in an embedded environment, heap space is just as precious. In some such, it's even non-existent....

  1. #16
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    But in an embedded environment, heap space is just as precious. In some such, it's even non-existent.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #17
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    Quote Originally Posted by CornedBee View Post
    But in an embedded environment, heap space is just as precious. In some such, it's even non-existent.
    true enough; I was doing coding on a medical device in the early part of this decade with exactly that issue....my example comes from working on (more recently) PS3 where stack, while there, is at a premium.

    The point that was being made though was (hopefully) all the world is not an Intel with gobs of stack and heap.
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

  3. #18
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    sorry for bumping this thread
    Thread bumping only applies to threads at least 14 days old. You are 'replying' to this thread since you are well within that window.

    I work in an embedded environment. Daily I run into issues with no swapping to disk, no loading from disk (after the intial load), not enough heap and/or fragmented heap, and video memory issues. Not many problems with stack memory but I have run into a couple of stack overflows. Heap and video memory are primarily the biggest issues I have to overcome from day to day.

  4. #19
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    Quote Originally Posted by Bubba View Post
    Thread bumping only applies to threads at least 14 days old. You are 'replying' to this thread since you are well within that window.

    I work in an embedded environment. Daily I run into issues with no swapping to disk, no loading from disk (after the intial load), not enough heap and/or fragmented heap, and video memory issues. Not many problems with stack memory but I have run into a couple of stack overflows. Heap and video memory are primarily the biggest issues I have to overcome from day to day.
    Yeah but there is just something about working embedded where it seems the odds are against you to really test your skills....it is ironic that on the PC the only direction to go it seems is "BIGGER" whereas in the embedded world it is often "smaller" or learning to do without portions of the language.

    "What do you mean there's no flock()??"

    Sorry for the drift...
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mutex and Shared Memory Segment Questions.
    By MadDog in forum Linux Programming
    Replies: 14
    Last Post: 06-20-2010, 05:04 AM
  2. Copy HWND into shared memory buffer
    By Opariti in forum Windows Programming
    Replies: 2
    Last Post: 12-26-2009, 01:08 PM
  3. Relate memory allocation in struct->variable
    By Niara in forum C Programming
    Replies: 4
    Last Post: 03-23-2007, 04:06 PM
  4. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  5. multiple indirection...
    By doubleanti in forum C++ Programming
    Replies: 7
    Last Post: 08-31-2001, 11:56 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21