Article View: comp.os.msdos.programmer
Article #4771memory models in TC 2.0
From: Dan Schikore
Date: Tue, 19 Feb 1991 03:31
Date: Tue, 19 Feb 1991 03:31
15 lines
1198 bytes
1198 bytes
A program that I am writing uses dynamic structures of size ~12K, and will not allow me to allocate memory for more than 3 structures. I am trying to compile using a different memory model and having some difficulty. What must be done to use a different memory model? I tried first using the -mc option on the tcc command line, and I have had all sorts of problems with the program doing unexpected things. When you change memory models do you have to specify the change in pointer types? (I also tried this changing all pointers to far pointers and malloc to farmalloc, etc). Basically, are there some pitfalls that I have to look out for in changing the default memory model? Any help would be appreciated. Thanks, -Dan Schikore schikore@mentor.cc.purdue.edu
Technical Details
Message-ID:
<6246@mentor.cc.purdue.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!news.cs.indiana.edu!purdue!mentor.cc.purdue.edu!schikoreShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!news.cs.indiana.edu!purdue!mentor.cc.purdue.edu!schikore From: schikore@mentor.cc.purdue.edu (Dan Schikore) Newsgroups: comp.os.msdos.programmer Subject: memory models in TC 2.0 Keywords: pointer types Message-ID: <6246@mentor.cc.purdue.edu> Date: 19 Feb 91 03:31:02 GMT Distribution: usa Organization: Purdue University Lines: 15