Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!cit-vax!tybalt.caltech.edu!ssnyder From: ssnyder@tybalt.caltech.edu (Scott S. Snyder) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: Borland's new C compiler Message-ID: <2991@cit-vax.Caltech.Edu> Date: Tue, 9-Jun-87 01:34:54 EDT Article-I.D.: cit-vax.2991 Posted: Tue Jun 9 01:34:54 1987 Date-Received: Thu, 11-Jun-87 06:26:49 EDT References: <381@vax1.ccs.cornell.edu> <2835@zen.berkeley.edu> <4074@teddy.UUCP> Sender: news@cit-vax.Caltech.Edu Reply-To: ssnyder@tybalt.caltech.edu.UUCP (Scott S. Snyder) Distribution: comp.lang.c Organization: Calfornia Institute of Technology Lines: 35 Keywords: IBM PC Turbo-C CodeView Xref: mnetor comp.lang.c:2403 comp.sys.ibm.pc:4716 In article <4074@teddy.UUCP> jpn@teddy.UUCP (John P. Nelson) writes: >>>Anyone out there have reviews of Borland's new C compiler? [...] >> >>Does anyone know if CodeView will work with the .exe files produced >>by this compiler? > >Well, it will WORK, but Turbo C does not put in the symbolic information >that Codeview needs to work in symbolic mode (which is probably what you >were really asking). Turbo C appears to be able to put line number >information into the .obj file, so it will probably work with SYMDEB >(untried). Yes, SYMDEB will work. However, you CAN get CodeView to use line numbers and global symbols from Turbo-C programs. You just have to use Microsoft's linker. Since Turbo doesn't put default library names into the .obj file, you'll also have to tell LINK about all the Turbo libraries and the startup object file (c0), i.e., something like this: link/co \tc\lib\c0s pgm, pgm,,\tc\lib\emu \tc\lib\maths \tc\lib\cs (handy tip: put emu (or fp87) BEFORE cs in the link command; otherwise floating point doesn't work. Also, c0 should be before your program name; otherwise spurious "Null pointer assignment" errors are generated) Of course, CodeView won't know about anything about types or automatic variables. And now a question: TC doesn't seem to support modifying static data with near, far, and huge like MSC does (TC seems only to allow them for pointers and functions). Is this correct? Are there other ways to achieve the same thing? (specifically, what I want to do is to have an array bigger than 64k without having to use the huge model). sss