[comp.unix.wizards] -g libs on System V

bobj@aspect.UUCP (Bob Joyce) (06/20/91)

I recently ported a Motif-based program from a Sun Sparc machine to a Motorola 
MPC 200 running System V.  In both cases the program contained a "-g" version
of the Motif library.  

Two things surprised me:

	(1) The executable size was ~6 Meg on the sparc, but ~13 Meg on the
	    MPC.

	(2) Starting up the executable on the MPC under gdb took about 
	    20 minutes!.  Reason - the process consumed more than
	    40 Megabytes of memory, thereby causing intense swapping.
	    On the sparc, gdb started up in less than a minute and consumed
	    only about 6 Megs.  The same problem occurs with sdb and on
	    another System V, Motorola platform.

Is this problem common to System V architectures?  Is it particular to 
Motorola?  Have other Motif developers experienced high memory consumption
when they compile with "-g"?   Do developers have to be very selective
about their use of "-g"?

Thanks for any information.

					
					Bob Joyce
					uunet!aspect!bobj
					(408) 441-2236