Path: utzoo!utgpu!watmath!clyde!ima!spdcc!rayssd!cc From: cc@rayssd.ray.com (Charles R. Coday) Newsgroups: comp.lang.c Subject: TC 2.0 EXE size Keywords: bigger Message-ID: <4867@rayssd.ray.com> Date: 21 Nov 88 15:03:29 GMT Sender: cc@rayssd.ray.com (Charles R. Coday @ Raytheon Company, Portsmouth RI) Distribution: na Organization: Raytheon Company, Portsmouth RI Lines: 52 Hi, I just received Turbo C 2.0 and when I compiled a program written under Turbo C 1.5, I discovered an EXE size increase of approx 5k bytes. Without reproducing the complete program, the general flow of the program is: #include #include #include main() { z=time(thing); . . srand(num); x=rand(); /*rand stuff used to randomly select a file*/ . . result=fopen(......); . setvbuf(.....); /*so the fread is faster*/ . result=fread(......); . . scan the buffer of data for a code . . loop on "putchar"ing a chunk of the data . . } I don't use printf or scanf. The TC 1.5 version was approx 11.5k and the TC 2.0 is approx 17K. Both were compiled with the following options: tiny model, optimize for size, and the rest were left at default except for "debug" turned off in TC 2.0 . Does anyone have an idea what causes this? Can you tell me where/what I've missed/screwed up? If really necessary, I could post/mail the source. BTW, the program is a "quote/fortune" thing I wrote. I'm not a C expert, I just like to fool around with it. Thanks. -- Chuck Coday | All of these opinions are MINE and Raytheon cc@rayssd.RAY.COM | can't have any of them! (401) 847-8000 x4403 |-------------------------------------------- (401) 792-3985 |usmail: 84 Lake Rd., Narragansett, RI 02882