🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9761

Re: terminfo and curses

#9761
From: Guy Harris
Date: Sat, 08 Nov 1986 07:59
29 lines
1899 bytes
> >	A 30K curses program on the 6350 is 60K on the 8000.
> >
> >	A non-curses program on the 8000 is typically 25%
> >	smaller than the identical C code on the 6350
> >	because of optimization.
> >
> 1)	I don't know about the differences between a 6350 and an 8000
> 	but, do you know if the compiler is the exact same on both systems?

From his statements, it seems to me as if he knows that the compiler is, in
fact, NOT the same on both systems - and that it produces BETTER code on the
machine where the "curses" program is bigger!

> 2)	Terminal-independent code is most likely going to be larger than
> 	terminal-specific code. Trade-offs ya know :) 

What does that have to do with the price of eggs?  He isn't comparing the
size of a piece of terminal-independent code with a piece of
terminal-specific code here.  He's saying that the "curses" code
on the 6350 is smaller than the "curses" code on the 8000 - you can argue
that both versions of "curses" are terminal-independent (because they're
use the terminal databases "termcap" and "terminfo", respectively, to guide
their actions).  He mentioned the non-curses program just to show that the
compiler is probably not at fault here - the program in question is bigger
on the 8000 because "curses" is bigger on the 8000.
-- 
	Guy Harris
	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
	guy@sun.com (or guy@sun.arpa)
Technical Details
Message-ID: <9066@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!pyramid!decwrl!sun!guy
References: <257@BMS-AT.UUCP> <1294@bunker.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!pyramid!decwrl!sun!guy
From: guy@sun.uucp (Guy Harris)
Newsgroups: net.lang.c,net.unix-wizards
Subject: Re: terminfo and curses
Message-ID: <9066@sun.uucp>
Date: Sat, 8-Nov-86 02:59:17 EST
Article-I.D.: sun.9066
Posted: Sat Nov  8 02:59:17 1986
Date-Received: Sun, 9-Nov-86 03:43:28 EST
References: <257@BMS-AT.UUCP> <1294@bunker.UUCP>
Organization: Sun Microsystems, Inc.
Lines: 29