home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!delft.Berkeley.EDU!chick
- From: chick@delft.Berkeley.EDU (Steve Chick)
- Newsgroups: comp.sys.mac.programmer
- Subject: Think C 5 subroutine size limit
- Date: 21 Jul 1992 22:10:25 GMT
- Organization: University of California, Berkeley
- Lines: 25
- Message-ID: <14i20hINN1bu@agate.berkeley.edu>
- NNTP-Posting-Host: delft.berkeley.edu
-
- I am using Think C 5, and am trying to port some
- C code which functions well on several UNIX systems
- to the Mac. One of the subroutines is rather large
- (>1000 lines, lots of local variables).
-
- When compiling, Think C 5 terminates partway through
- the source with an error like 'invalid expression' on
- a simple arithmetic expression which compiled without
- complaint on a unix machine. Commenting this line made
- the compiler terminate on the next expression (which was
- equally well formed in terms of syntax).
-
- My conclusion, there is a limit to the size of the
- subroutine within Think C 5. Is this limit the 32K
- hardware limit of the Mac? or is it some other limit?
- (I tried beefing up the memory allocated to Think C
- by the finder by a factor of 2).
-
- Has anyone had a similar experience? know of any work-
- arounds so I won't have to rewrite the subroutine into
- several smaller subroutines (not a small task)?
-
- Any help would be appreciated.
- Steve Chick
- chick@cimsim.berkeley.edu
-