From: bukinm AT inp DOT nsk DOT su (Michael Bukin) Newsgroups: comp.os.msdos.djgpp Subject: Re: lib Date: Tue, 29 Apr 1997 03:46:02 GMT Organization: BINP SD RAS Lines: 24 Message-ID: <33656a9d.3378697@news-win.inp.nsk.su> References: <3365334F DOT 41C1 AT icgroup DOT net> Reply-To: bukinm AT inp DOT nsk DOT su NNTP-Posting-Host: csd-bsdi.inp.nsk.su Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Mon, 28 Apr 1997 19:31:27 -0400, lab wrote: > I am very new to djgpp/rhide. I managed to build a library but somehow I > lost all my .c and .o files. All I have left is the library.Is there a > way I can disassemble the lib and get my .c files back?........ > > LAB To extract all archive members from library: ar xv libsome.a To disassemble object file: objdump --source file.o If it was compiled with `-g' you will get source lines mixed with assmebler listing. In this case you can strip assembler listing (less hand editing needed): objdump --source file.o | grep -v '^[0-9]' > file.c `ar' and `objdump' come with binutils.