[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

660.0. "Help me C!" by STKEIS::LJONSSON () Mon Jan 12 1987 10:58


        I'm rather new at VAXC. I wrote a program to write out "Hello!" to
      my terminal. That wasn't a problem. The problem was that the 'EXE' file
      created after compiling and linking was 87 (!!) blocks. Why? Can I get
      around this? Am I doing something wrong? My diskquota can't take much
      more of this!

                                         /Lars
T.RTitleUserPersonal
Name
DateLines
660.1try to live with that ...KBOMFG::COLDITZPeter Colditz @KBOTue Jan 12 1988 11:497
    If you link with $ link/map you can have a look to all linked modules
    out of the VAXCRTL.OLB into the image. The minimum size of a C image
    is 87 blocks.
    
    Try to access the C notes file TLE::VAXC for much more inputs.
    
    Peter
660.2A tumour on the side of the CMDVAX3::COARTue Jan 12 1988 12:597
    Yah, VAX-C includes a bunch of object modules into the .EXE, rather
    than just a reference to a shareable library, because (as I recall)
    of the rather bizarre way VAX-C handles some of its `standard
    variable.'  The PSECT attributes don't permit inclusion in a shareable
    library, or something like that.
    
    #ken	:-)}
660.3Use A Higher Version?FOO::BHAVNANIWhen in doubt, blame the compiler.Tue Jan 12 1988 15:0113
	What version of VAXC are you using?  On versions >= 2.1, I do

		$ cc foo
		$ link foo, tt /opt
		sys$share:vaxcrtl.exe/sh
		^Z
		$ r foo

	and get reasonable size .EXEs.  I used to have the same problem
	as you with VAXC 1.0.  I suggest you upgrade to 2.3.  Lots of nice
	library routines, including Curses.

	/ravi
660.4.3 works38007::ZARLENGARowdy Roddy Piper personifiedThu Jan 14 1988 21:396
    	You can get .EXEs as small as 4 blocks by using the method
    demonstrated in .3.
    
    	I do it all the time.
    
    -mike z