Thread: Viewing stack frames

  1. #1
    Registered User
    Join Date
    Nov 2017
    Posts
    2

    Viewing stack frames

    Write a program that includes a memory introspection function view stack frame(), printing out the stack frame of caller functions. you may assume that all variables inside the callers’ stack frames are all of the same type, although their number may vary. The function displays output organized in two columns, the first displaying addresses of variables while the second displays their corresponding values. Symbolic identifiers do not feature."

    I am stuck on this question again, I am imagining a program that has a couple of functions and in each function there is a local variable and value assigned to the variable AND these functions are being called in the main function. Now how do I fetch the address of the functions? How do I use backtrace??

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    Your "friend" asked the same question yesterday. Perhaps you should read the answers so far on that thread.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Viewing stack frames
    By jonathan123456 in forum C Programming
    Replies: 5
    Last Post: 11-23-2017, 12:40 PM
  2. Sdi? Mdi? Frames?
    By execute in forum Windows Programming
    Replies: 4
    Last Post: 05-16-2006, 08:05 PM
  3. DirectX 2D Frames Per Second
    By LuckY in forum Game Programming
    Replies: 9
    Last Post: 09-17-2004, 11:11 PM
  4. Video Frames
    By Speedy5 in forum C# Programming
    Replies: 2
    Last Post: 01-04-2004, 06:35 PM
  5. Getting the FPS (Frames Per Second)
    By Unregistered in forum Game Programming
    Replies: 12
    Last Post: 05-05-2002, 10:58 AM

Tags for this Thread