delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/17/05:43:56

Message-Id: <199605170939.FAA15940@delorie.com>
Date: Fri, 17 May 96 12:25:22 LIT
From: Martynas Kunigelis <martynas DOT kunigelis AT VM DOT KTU DOT LT>
Subject: Re: Unused functions
To: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>,
DJGPP mailing list <djgpp AT delorie DOT com>
In-Reply-To: Your message of Thu, 16 May 1996 14:49:24 GMT

>  A.Appleyard wrote wanting djgpp's linker to be able to say which entry
>points are (1) only used within the same file, so he can declare them
>`static', (2) not used at all, so he can delete them. ...
>

`Wanting' is a nice word. I personally want Windows and OS/2 to provide
DPMI 1.0 services. BTW, you misunderstand the concept of DPMI. You are always
a slave to the OS you're running under. THERE IS NO WAY TO SUPPRESS THE DPMI
THAT OS GIVES YOU.
Now the linker: a mapped link should solve most of your problems. Not sure
about the switches, but something like this should do:

  gcc -Xlinker -Map ...

To be sure, check ld docs and gcc docs on passing options to ld.

Martynas

- Raw text -


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