delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/18/09:27:56

Date: Tue, 18 May 1999 13:52:05 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Radu Georgescu aka skoola <skoola AT go DOT ro>
cc: djgpp AT delorie DOT com
Subject: Re: problem with extended inline asm
In-Reply-To: <373CF61B.948F13AD@go.ro>
Message-ID: <Pine.SUN.3.91.990518135146.24330X-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 15 May 1999, Radu Georgescu aka skoola wrote:

> the static and the automatic variables are located in memory one next to
> another, if they are declared so

This is simply not true.  Static variables go to the data section
while automatic variables are on the stack.  So they could be
megabytes apart.  You can easily verify that by taking an address of a
variable and printing it.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019