Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.amiga » Lattice C
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Lattice C [message #282386] Fri, 24 January 1986 13:00
dillon is currently offline  dillon
Messages: 81
Registered: November 1985
Karma: 0
Member
Article-I.D.: ucbvax.11532
Posted: Fri Jan 24 13:00:52 1986
Date-Received: Sat, 25-Jan-86 09:37:48 EST
Organization: University of California at Berkeley
Lines: 23
Keywords: code length


	There are several reasons why your "small" lattice C programs
Take so much room:

	(A) the Xstartup.obj is also included.  This is the startup
module which breaks up the arguments and calls main()... It also
happens to use STDIO, therefore the stdio library routines are also
linked in.

	(B) for those of you who havent guessed yet, printf() and 
associated functions take about 10K of space.

To REALLY test code size, write a C program which doesn't call ANY
library routines, then link it without all the other garbage:

	alink x.o to a

NOW you can use WACK ... notice that the code is rather smaller?  Now
do you understand how it works??? ALL those files you had to link in
are your support routines, etc....

				
				-Matt
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Quality text with monochrome monitors / Sony color
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Apr 18 13:07:48 EDT 2024

Total time taken to generate the page: 0.03179 seconds