Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!rpi!nyser!cmx!usenet From: usenet@cmx.npac.syr.edu (USENET) Newsgroups: comp.sys.mac.programmer Subject: MPW C 3.0 Large progam/data Message-ID: <1937@cmx.npac.syr.edu> Date: 5 Oct 89 18:22:08 GMT Reply-To: polar@top.cis.syr.edu (Polar Humenn) Organization: CIS Dept., Syracuse University Lines: 60 I have a compiler I wrote under UNIX, that uses code generated by YACC and LEX. Therefore, there are a good chunk of glabal data arrays (initialized). I want to get his working on the MACIIx. From: polar@wotan.top.cis.syr.edu (Paul R. Humenn) Path: wotan.top.cis.syr.edu!polar I have a MACIIx with 8 bloddy megabytes of memory, and it seems that I can't access it. I have plenty of functions and they have to go thru this "jump table". Please exuse my ignorance of this Mac. However, my SUN is a 68030 and I can access all kinds of data. With the MPW software, I can't even get past the Linker. Global data size exceeds 32K. That seems to be a problem but I'm not sure if it is the root of it. Now, I've read the manuals and all that stuff and I believe I've selected the right options for 32-bit addressing. I've played around pretty thoroughly with all the C compiler and Linker switches. I have about 37 C files with tons of functions that I try to link with the given libraries. Under Unix the executable is about 256K. I have rearragned the link command several ways (moved filenames around and different switches) and get different errors, but bacically all telling me some offset is out of range. These are the three errors: Error 50, Jump table offset is out of range Error 48, PC-relative edit, offset out of range Error 49, Computed Reference offset out of range Now, I suspect that this may have to do with the Libraries since most of the errors end up comming from or around there. I've used the -ss and -srt options. Again, I get different combinations of the above errors. Could it be that the Clibraries are not compiled with the -m -n options allowing 32-bit addressing, or is totally me!?! All I want to do is to compile and run my C code. I have a 68030 processor with 8 meg of memory, just like my SUN workstation, however .... It is the Mac operating system, trying to be backward compatiable with all those little macs? Should I: a. write smaller programs b. become a tricky Mac system hack to do relatively straight forward simple no nonsense, no tricks programming c. get a *real* operating system for this machine, like Mach, or (Oh god!) AUX. d. Give up. Please excuse my scarcasism, but I beleive I am looking at a very powerful mainframe-like piece of hardware, and it seems to behave like a PDP-8 or worse. I'm very frustrated. Can anyone out there lend some insight to my problem. Thanks a bunch, -Polar polar@top.cis.syr.edu