Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!maytag!watstat.waterloo.edu!dmurdoch From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch) Newsgroups: comp.lang.pascal Subject: Re: Converting tp5.5 to TPW usint wincrt. Data memory problems Message-ID: <1991Jun7.024337.9017@maytag.waterloo.edu> Date: 7 Jun 91 02:43:37 GMT References: <1991Jun4.104355.4935@g2.brispoly.ac.uk> Sender: news@maytag.waterloo.edu (News Owner) Organization: University of Waterloo Lines: 23 In article <1991Jun4.104355.4935@g2.brispoly.ac.uk> gm_clule@g2.brispoly.ac.uk (cluley) writes: > >This is my first go on the net.. so I hope I don't make >any mistakes! > >I have been trying to convert tp5.5 programs to TPW using the >simple wincrt unit. The problem is that even on fairly small >programs (those which tp5.5 says have a data size of about >30k) I have been receiving "Data segment too large" messages at the >end of compilation. > >If these compiled fine under tp5.5.. why shouldnt they work under >TPW.. Do I have to re-write them using pointers and dynamic >techniques? (I'd really rather not..) The memory map under TPW is quite different. I don't have the manuals at home, so I may get this wrong, but I think they've put the stack and near heap into the same segment as static data and constants. I can't remember what the near heap is used for, so I don't know how small you can safely make it, but I think the manual discusses it. Duncan Murdoch dmurdoch@watstat.waterloo.edu