Path: 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 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