Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.programmer.help > #166

Old CodeWarrior debugger memory layout question

Newsgroups comp.sys.mac.programmer.help
Date 2012-12-06 07:00 -0800
Message-ID <7970d589-b24d-4308-8077-67d50f648605@googlegroups.com> (permalink)
Subject Old CodeWarrior debugger memory layout question
From charleengary@gmail.com

Show all headers | View raw


I'm working with an old copy of CodeWarrior (Pro v6) from circa 2000. In the process of debugging a crash, I'm seeing a change to a variable that is totally unrelated to the variable being changed by the current instruction.

I would like to know how the variables in my program are actually stored in memory. That is say I have the following variables declared:

short  a;
long   b;
short  c;
long   d;


When the compiler allocates storage for the variables does memory look like:
|aa|bbbb|cc|dddd|
   or
|aa--|bbbb|cc--|dddd|
   or
something else entirely?

Can I display a memory map of my data section in some way?


Gary

Back to comp.sys.mac.programmer.help | Previous | NextNext in thread | Find similar


Thread

Old CodeWarrior debugger memory layout question charleengary@gmail.com - 2012-12-06 07:00 -0800
  Re: Old CodeWarrior debugger memory layout question David Stone <no.email@domain.invalid> - 2012-12-06 12:49 -0500
    Re: Old CodeWarrior debugger memory layout question charleengary@gmail.com - 2012-12-07 05:40 -0800
      Re: Old CodeWarrior debugger memory layout question David Stone <no.email@domain.invalid> - 2012-12-07 14:13 -0500

csiph-web