www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/04/05:16:17

From: "Denis Y. Zibarev" <den AT re DOT tsu DOT tomsk DOT su>
Message-Id: <199704041801.SAA01036@re.tsu.tomsk.su>
Subject: Re: Sol. for LD bug
In-Reply-To: <Pine.SUN.3.91.970403175001.27318S-100000@is> from "Eli Zaretskii" at "Apr 3, 97 05:52:45 pm"
To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
Date: Fri, 4 Apr 1997 18:01:01 +0000 ()
Cc: djgpp AT delorie DOT com
MIME-Version: 1.0

> 
> On Thu, 3 Apr 1997, Zibarev Denis wrote:
> 
> >         Here is one more solution for LD bug from DJGPP V2.01. I decided
> > to compile POVRAY with DJGPP and LD says: pmode.a: Memory exhausted. There
> > is a way to solve it:
> >         1) Make a library from all object files.
> >         2) Disassemble library pmode.a
> >         3) Link it.
> 
> Sorry, this is not clear enough.  Can you please tell exactly which 
> commands did you use to work around the problem?  In particular, what 
> does ``disassemble library pmode.a'' mean?  I would like to update the 
> FAQ, but I need to understand what exactly people need to do.

Well, what does 'Make a library from all object files' means? You must
use 'ar -r' to do it. For example: 

                        ar -r linkit.a *.o

I argee, 'Disassemble' is not clear enough. It means 'extract all modules
from library pmode.a'. In general, I'm using the same technology in all cases
when LD says 'memory exhausted' on one library (in this case, pmode.a).

Example: (about POVRAY).
(There is about 30 object files and several libraries).
(Making a library from object files)
ar -r povlib.a *.o
(removing object files)
del *.o
(Extracting objects from pmode.a)
ar -x pmode.a *.o              // Correct me if I'm wrong 
(linking)
gcc -o povray.exe (objects from pmode.a) povlib.a (other povray's libraries)

And all OK!

(In Povray's documentation there is a note that authors were unable to 
compile with optimizations and link it with DJGPP V2. It is possible to
link it with DJGPP!!! But, with some inventions...
And IMHO DJGPP'ed programs works much better in OS/2 (multitasking).
I'm running Povray in OS/2 and it works about 4 days, and it is possible to
do something else efficiently => OS/2 -Rulez!) 

If you are interested in povray ('s compiling and linking), you can download
sources from ftp://re.tsu.tomsk.su/pub/povray. 

> 
> > PS: BTW, what is MATCOM? (and where to get it, if share/free/gnuware?)
> 
> It is a commercial C/C++ compiler which support real-mode and 
> protected-mode DOS programs and Windows apps.
IMHO, is it WATCOM C/C++? There were some questions about MATCOM(Not WATCOM!).
> 


-- 
                                 Denis Y. Zibarev aka [The Necropolis],
                                              FTP Archive Administrator
                                                  <den AT re DOT tsu DOT tomsk DOT su>

=== VISIT US: ftp://re.tsu.tomsk.su ====
---
* "...And he shall journey into the realm of the death, and contest with
   the forces therein, into the very gates of despair;  but  whether  he
   shall return to the world of light,no man knows..."

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019