[comp.lang.c] core dump & large models

root@ozdaltx.UUCP (root) (08/12/90)

This is really weird....
I have a program I'm working on that contains several tree structures.
When using the default cc command (small model), it compiles fine
and runs.  However, I'm running out of data space and need to switch
to a large model (-Ml2 or Mh2).  The code compiles, but when I try to
run it, I get an immediate 'Memory fault - core dump'.  It dosn't
appear to  even make it into the main() part of the program.

I'm not up on adb or sdb enough to know what to look for, but hoping
someone may have an idea/suggestion as to what is happening.

This is running on SCO Xenix 2.2.3 (286), not sure of the compiler
version.  ANY help would be appreciated.
thanks
Scotty
------
AIDS INFORMATION EXCHANGE BBS      (214) 247-2367/247-5609
               "Education is the best weapon"
{mic,void,egsner}!ozdaltx!sysop || {uunet,smu,ames}!sulaco!ozdaltx!sysop