Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!unido!pbinfo!fillg1 From: fillg1@uni-paderborn.de (Michael Illgner) Newsgroups: comp.sys.amiga.programmer Subject: Re: functions >32k using SAS-C ?? Message-ID: <1991Jan25.121424.4165@uni-paderborn.de> Date: 25 Jan 91 12:14:24 GMT References: <7027@crash.cts.com> <1991Jan21.101655.6852@uni-paderborn.de> Organization: Uni-GH Paderborn Lines: 33 ben@epmooch.UUCP (Rev. Ben A. Mesander) writes: >>>The -b switch is definitely not going to work. That switches on base relative >>>data addressing. Using -r with no options defaults to 16-bit PC relative >>>target function addressing. Try the following options: -b0 -r0 >>>The zero after the option in each case implies 32-bit absolute addressing for >>>both data and function calls. >> ^^^^^^^^^^^^^^^ >>That is >not< the problem. I need 32-bit absolute addressing inside a >>function, eg. for loops and not for function calls. I believe that >>SAS does not support this. >I had this problem with Lattice C 5.05 when I compiled GNU Chess, but SAS/C >advertises that they *can* handle loops and switches larger than 32K, and >indeed GNU Chess now compiles fine (well, there are a lot of other changes >to make due to SAS's bugs in handling short in ANSI prototypes (maybe fixed >in 5.10A now)). So I'm puzzled as to what the problem you are having is, >could you post the exact error message? I don't remember the exact message, but it was something like : Codesize greater 32k. Branches may be incorrect. Split some subroutines into seperate files. Unlike the usual error messages from the compiler, there was neither an error number nor a line number in the message. I have tried the new -ba switch for automatic converting to far, but no success. The codesize was about 80k in a single function. -- Michael Illgner fillg1@uni-paderborn.de Tel. Theodorstrasse 27 Warburgerstr. 100 Buero 05251/60-2331 4790 Paderborn Theoretische Physik Privat 05251/26488 Germany Buero : N3.323