public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Default compiler behaviour for b19
@ 1997-09-04 21:18 Anthony Wesley
  1997-09-09  3:50 ` Geoffrey Noer
  1997-09-09 23:33 ` Andrey A. Kulaga
  0 siblings, 2 replies; 12+ messages in thread
From: Anthony Wesley @ 1997-09-04 21:18 UTC (permalink / raw)
  To: gnu-win32

Perhaps I am misreading the comments on the gnuwin32 home page, but it
looks like Cygnus are proposing to have "gcc -o foo foo.c" generate
native win32 binaries by default and not link with cygwin.dll. To
compile UNIX-ish tools and link with the cygwin.dll library you will
have to supply an extra command line option.

This seems silly to me, and the wrong way around. After all, gcc and all
the nice tools and development environment came from the UNIX land, so
surely generating UNIX-ish binaries should be the default, making
porting UNIX applications and tools the native mode, whereas generating
pure win32 binaries should be the "foreign" mode.

It would be really strange to have "gcc -o foo foo.c" not work as
expected by people coming from the UNIX world. I realise that this
behavious could be covered up (eg have an environment variable to select
the mode, or put it in the gcc compiler-options file) but I believe that
it would still be the wrong attitude by Cygnus to do this.

Just my AUS $0.0215 worth .. :-)

Anthony
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Default compiler behaviour for b19
@ 1997-09-09  3:50 Sonic Junior
  0 siblings, 0 replies; 12+ messages in thread
From: Sonic Junior @ 1997-09-09  3:50 UTC (permalink / raw)
  To: awesley; +Cc: GNU Win 32

	I completely agree.

	In b19, I think the default behavior should be to link to cygwin.dll.
However, a command line option would cause it to NOT link to cygwin.dll.

	- SJ

----------
> From: Anthony Wesley <awesley@acquerra.com.au>
> To: gnu-win32@cygnus.com
> Subject: Default compiler behaviour for b19
> Date: Thursday, September 04, 1997 9:23 PM
> 
> Perhaps I am misreading the comments on the gnuwin32 home page, but it
> looks like Cygnus are proposing to have "gcc -o foo foo.c" generate
> native win32 binaries by default and not link with cygwin.dll. To
> compile UNIX-ish tools and link with the cygwin.dll library you will
> have to supply an extra command line option.
> 
> This seems silly to me, and the wrong way around. After all, gcc and all
> the nice tools and development environment came from the UNIX land, so
> surely generating UNIX-ish binaries should be the default, making
> porting UNIX applications and tools the native mode, whereas generating
> pure win32 binaries should be the "foreign" mode.
> 
> It would be really strange to have "gcc -o foo foo.c" not work as
> expected by people coming from the UNIX world. I realise that this
> behavious could be covered up (eg have an environment variable to select
> the mode, or put it in the gcc compiler-options file) but I believe that
> it would still be the wrong attitude by Cygnus to do this.
> 
> Just my AUS $0.0215 worth .. :-)
> 
> Anthony
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Default compiler behaviour for b19
@ 1997-09-10 22:54 Colin Peters
  0 siblings, 0 replies; 12+ messages in thread
From: Colin Peters @ 1997-09-10 22:54 UTC (permalink / raw)
  To: 'GNU-Win32'

Fergus Henderson[SMTP:fjh@cs.mu.OZ.AU] wrote:
>Geoffrey Noer <noer@cygnus.com> writes:
>
>>Anthony Wesley wrote:
>>> 
>>> Perhaps I am misreading the comments on the gnuwin32 home page, but it
>>> looks like Cygnus are proposing to have "gcc -o foo foo.c" generate
>>> native win32 binaries by default and not link with cygwin.dll. To
>>> compile UNIX-ish tools and link with the cygwin.dll library you will
>>> have to supply an extra command line option.
>>
>>Yes, and this may still happen at some point down the road.
>
>I have to agree with Anthony Wesley that this would be a Bad Idea.

At first I was going to say that either default would be fine if
you could override the default with an environment variable, and
override the environment variable or default with a command line
option. This would give the user maximum flexibility and
convenience.

However, I thought about it a bit, and I have to agree that
'gcc' should by default have the compatibility layer enabled. I
still think you should be able to override the default in the
way above though.

The reason I think gcc should, by default, be UNIX is simply
that all extant shell scripts which call gcc, without any
other options, are basically UNIX-centric. If you are running
one of these shell scripts then you are running in a UNIX-like
environment. The shell script will no doubt include other UNIX
isms. New scripts written with the Win32 port in mind can
include an option to behave natively, but making gcc act
differently by default can only break older scripts and offer
very little benefit to new programmers.

Of course one can, and should, be able to recompile gcc to
target Win32 native with no UNIX compatibility layer, with
the understanding that this retargeted gcc, like any gcc
targeted at a non-UNIX machine, will not always behave as
expected by UNIX scripts or when compiling UNIX code.

Well, that's my opinion, for what it's worth. :-/

Colin.

-- Colin Peters - Saga Univ. Dept. of Information Science
-- colin@bird.fu.is.saga-u.ac.jp - finger for PGP public key
-- http://www.fu.is.saga-u.ac.jp/~colin/index.html
-- http://www.geocities.com/Tokyo/Towers/6162/

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1997-09-13 11:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-04 21:18 Default compiler behaviour for b19 Anthony Wesley
1997-09-09  3:50 ` Geoffrey Noer
1997-09-09 23:33   ` Fergus Henderson
1997-09-11  9:20     ` Christian Soeller
1997-09-09 23:33 ` Andrey A. Kulaga
1997-09-11 10:10   ` AECEULA, QUEST Team
1997-09-12  9:32     ` Earnie Boyd
1997-09-12 12:07     ` M. Halpin
1997-09-12 20:49       ` Where is b19 Daniyal Syed
1997-09-13 11:51         ` Michael Hirmke
1997-09-09  3:50 Default compiler behaviour for b19 Sonic Junior
1997-09-10 22:54 Colin Peters

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).