GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #14592

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Rugxulo
Subject: Hi everyone - got a question about GPC
Date: 15 Feb 2010, 23:53:09

Hi,

On Mon, Feb 15, 2010 at 4:11 PM, Frank Heckenbach <ih8mj@fjf.gnu.de> wrote:
> Rugxulo wrote:
>
>> 1). Why is "--executable-file-name" such a long option to type?
>> Wouldn't "--exe" be more convenient?
>
> Well, we also have "--executable-path". ;-)

Doh!   ;-)

>> 2). DJGPP has a habit of making both "blah" and "blah.exe" when you
>> type "gpc blah.pas -o blah". This also affects your GP program. It's
>> really only useful with *nix makefiles (so the target and file will be
>> recognized), but it's pretty useless and annoying otherwise.
>
> AFAIR, "blah" is the COFF executable which can be called from other
> DJGPP programs,

Honestly, nobody uses plain COFF files anymore. That's a relic from
when a separate GO32.EXE was needed (DJGPP v1). But DJGPP can "call"
(run) either plain COFF or .EXEs anyways.

> and "blah.exe" is prefixed with a DOS loader (which
> is done by the "stubify" program), so it can be called from plain
> DOS programs as well. So depending on your needs, either or both may
> be useful.
>
> But it's been long since I've used DJGPP, so in case this was
> inaccurate or incomplete, Maurice will correct me, I hope.

You're right in that it used to be that way. But somewhere along the
line it changed. I'm not sure if it's correct, but I *think* BinUtils
(e.g. LD) handles it differently now. At least, using DJGPP 2.04, GCC
4.4.2, LD 2.19.1, 'gcc -s -O blah.c -o blah" (simple "Hello, World!"
example) produces "blah" and "blah.exe" that are 100% identical (with
stub, i.e. both in .EXE format).


Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Replies

Author Subject Date
Maurice Lombardi Hi everyone - got a question about GPC 16 Feb 2010, 18:45:51
Rugxulo Hi everyone - got a question about GPC 16 Feb 2010, 14:09:32
Maurice Lombardi Hi everyone - got a question about GPC 17 Feb 2010, 12:08:48
Frank Heckenbach Hi everyone - got a question about GPC 18 Feb 2010, 07:48:00
Rugxulo Hi everyone - got a question about GPC 18 Feb 2010, 14:24:35

In reply to

Author Subject Date
Martin Liddle Hi everyone - got a question about GPC 13 Feb 2010, 13:32:54
Frank Heckenbach Hi everyone - got a question about GPC 14 Feb 2010, 02:33:37
Rugxulo Hi everyone - got a question about GPC 14 Feb 2010, 18:23:22
Frank Heckenbach Hi everyone - got a question about GPC 15 Feb 2010, 23:11:19

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).