cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/21/14:15:27

From: "Alexandre Devaure" <Alexandre DOT Devaure AT leroy-autom DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: var in .text segment
Date: 21 Apr 1999 09:23:26 GMT
Sender: information AT hide DOT cadrus DOT fr
Message-ID: <01be8bd8$ac6eec60$15efa8c0@devaure.leroy-autom.com>
NNTP-Posting-Host: hide.cadrus.fr
X-Newsreader: Microsoft Internet News 4.70.1155
Lines: 11
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hey,
I use djgpp to compile programs to run on an embedded system. My problem is
djgpp puts the global variables in the code segment, so when I try to read
and, of course to write, those variables, I have a segment violation : my
code is in ROM and my datas are in RAM. Does djgpp put some variables and
constants in code segment because it uses in MSDOS the flat memory model
(ie, data segment and code segment represent the same memory space), or is
it a bug ?

Thanks,
Alexandre Devaure

- Raw text -


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