Hi Frank
At present, "gpc foo.pas" produces "a.exe" on Windows, and perhaps just "a" or "a.out" on other platforms. If you want "foo.exe" or "foo" or whatever, you have to use "--executable-file-name" or use "-o foo[.extension]". Would it be sensible to have situations where "--executable-file-name" is supplied automatically? I am not wishing to create more work - but I have always wondered whether anyone ever actually wants "gpc foo.pas" to produce "a.[whatever]". This seems to be a relic from the past (and perhaps from gcc), and I wonder whether "--executable-file-name" should not actually be the standard behaviour (with people still being free to use "-o foo" if they want).
I am not sure what you think about this, or how trivial or otherwise it would be to do this, even if it were thought desirable (and there might be reasons why it would not be good to go down this route).
Finally, under BP and Delphi, "gpc foo.pas" will always produce "foo[.whatever]". Perhaps "--executable-file-name" should always be implied when in BP or Delphi mode?
Of course it is a trivial thing to supply this at the command line, so if it would be too much trouble, then please junk the idea.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
Prof. A Olowofoyeku (The African Chief) wrote:
At present, "gpc foo.pas" produces "a.exe" on Windows, and perhaps just "a" or "a.out" on other platforms. If you want "foo.exe" or "foo" or whatever, you have to use "--executable-file-name" or use "-o foo[.extension]". Would it be sensible to have situations where "--executable-file-name" is supplied automatically?
One word: gp. :-)
I am not wishing to create more work - but I have always wondered whether anyone ever actually wants "gpc foo.pas" to produce "a.[whatever]".
The test suite wants this. (Of course, supplying `-o a.{out,exe}' would be possible there.)
This seems to be a relic from the past (and perhaps from gcc),
Yes -- also called compatibility. The plan is to make/leave the `gpc' executable as similar to `gcc' and put the Pascal specific and more convenient stuff in `gp'. (This might also be useful for multi-language projects which can then better control how they want to build.)
Finally, under BP and Delphi, "gpc foo.pas" will always produce "foo[.whatever]". Perhaps "--executable-file-name" should always be implied when in BP or Delphi mode?
alias bpc="gpc --automake --exetuable-file-name --borland-pascal ..." (for now).
Frank