X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C6586A1.C3AE5AC3@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Alignment problem References: <3c63f21f DOT sandmann AT clio DOT rice DOT edu> <3C645F1D DOT C26E8F64 AT yahoo DOT com> <3c64b7cf DOT sandmann AT clio DOT rice DOT edu> <3C650C18 DOT B45F67D4 AT yahoo DOT com> <4331-Sat09Feb2002145741+0200-eliz AT is DOT elta DOT co DOT il> <3C655E12 DOT 6F8D351E AT yahoo DOT com> <200202091859 DOT g19Ixam19704 AT envy DOT delorie DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 62 Date: Sat, 09 Feb 2002 20:32:16 GMT NNTP-Posting-Host: 12.90.176.79 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1013286736 12.90.176.79 (Sat, 09 Feb 2002 20:32:16 GMT) NNTP-Posting-Date: Sat, 09 Feb 2002 20:32:16 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com DJ Delorie wrote: > > > Those sources ARE in djlsr203.zip, I assume. No problem getting > > the time up there - see paste below. I assume this can be done > > without recompiling the run-time? > > Yes. Just add malloc.c (malloc.o) to your local project. Problem at step 1. > [1] c:\c\hashlib>gcc -c -gp -v malloc.c > Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.953/specs > gcc version 2.95.3 20010315/djgpp (release) > c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -std=c89 -v -D__GNUC__=2 -D__ > GNUC_MINOR__=95 -trigraphs -D__STRICT_ANSI__ -D__unix__ -D__i386__ -D__GO32__ -D > __DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asyste > m(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -gstabs+ -gp -W -Wall -pedan > tic -Acpu(i386) -Amachine(i386) -D__i386 -D__i386__ -D__tune_pentium__ -imacros > c:/djgpp/lib/djgpp.ver -remap malloc.c c:/djgpp/tmp\cc8K2mXk.i > GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax) > #include "..." search starts here: > #include <...> search starts here: > c:/djgpp/lib/gcc-lib/djgpp/2.953/include > c:/djgpp/include > End of search list. > The following default directories have been omitted from the search path: > $DJDIR/lang/cxx > $DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include > End of omitted list. > c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe c:/djgpp/tmp\cc8K2mXk.i -quiet -dumpba > se malloc.c -ansi -gstabs+ -gp -W -Wall -pedantic -version -o c:/djgpp/tmp\ccNNo > JKC.s > cc1.exe: warning: `-gp' not supported by this configuration of GCC > GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C version > 2.95.3 20010315/djgpp (release). > malloc.c:61: syntax error before `int' > malloc.c:74: syntax error before `int' > malloc.c:82: syntax error before `BLOCK' > malloc.c: In function `malloc': > malloc.c:195: warning: implicit declaration of function `sbrk' > malloc.c: At top level: > malloc.c:229: syntax error before `BLOCK' however the same command seems to function if I eliminate the -W -Wall -ansi -pedantic -gstabs+ default flags by using *gcc. What do I really need? Obviously the only portion that needs profiling is the malloc.c content, and that should be as detailed as possible. Should I be using gstabs+, gstabs, or g? The other modules are compiled with the defaults above. Does that matter? I assume that if malloc is linked before the library search the library version will be omitted? All doubtless 2nd nature to you, but not to me. Hand holding needed :-) -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)