* Compaq C and ssh-1.2.27 and optimization
@ 1999-12-13 5:00 Olaf Krische
1999-12-13 5:00 ` Jeff Sullivan
0 siblings, 1 reply; 3+ messages in thread
From: Olaf Krische @ 1999-12-13 5:00 UTC (permalink / raw)
I tried to compile ssh-1.2.27 on an alpha (21246 chip) with the Compaq C
compiler. With the default compile options given by configure all works
fine.
When i start to optimize the compilation, the ssh-client is behaving
strange. When i connect to a host, it will try to connect to a "false"
host (255.255.255.255), not to the host given on the commandline.
$ ssh -v another.host
my.host: ssh_connect: getuid 0 geteuid 0 anon 0
my.host: Allocated local port 1023.
my.host: Connecting to 255.255.255.255 port 22.
my.host: connect: Network is unreachable
my.host: Trying again...
[...]
'sshd' seem to work normal.
I started with the flag "-fast", i tried "-fast -arch generic" and at
last i tried only one flag per compilation: "-O" and "-arch ev6".
Nothing works.
Can someone retrace that failure? Someone should try out with CC=ccc and
CFLAGS=-fast.
While the compile process i get a lot of warnings about signed/unsigned
int. But they appear on both compilations, with or without any flag. So
they will say "nothing".
Hmmm.....
Thanks!
Olaf Krische
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compaq C and ssh-1.2.27 and optimization
1999-12-13 5:00 Compaq C and ssh-1.2.27 and optimization Olaf Krische
@ 1999-12-13 5:00 ` Jeff Sullivan
1999-12-14 5:00 ` Olaf Krische
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Sullivan @ 1999-12-13 5:00 UTC (permalink / raw)
Note that the -fast compilation flag can cause runtime differences
in code that is not ANSI compliant or otherwise non-portable. See
the cc man page for a description of the -fast option and the
flags that it is made up of.
Most often, when code runs as expected at the default optimization,
but not at -fast, it's a problem in the source code. What you could
try is to use -fast and then turn off some of the -fast options that
may be problematic in some code.
For example: -fast -noansi_alias
Or just use the default opt level, unles you really need to
tune your application for speed.
-Jeff
--
Jeff Sullivan | Compaq Computer Corp. | mailto:jps@zk3.dec.com
Compaq C/C++ | Nashua, NH 03062-2698 | Jeff.Sullivan@compaq.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compaq C and ssh-1.2.27 and optimization
1999-12-13 5:00 ` Jeff Sullivan
@ 1999-12-14 5:00 ` Olaf Krische
0 siblings, 0 replies; 3+ messages in thread
From: Olaf Krische @ 1999-12-14 5:00 UTC (permalink / raw)
Hi!
Yes, its clear what you mean and its that what i expected what an answer
will be.
But its curious. If only i use "-arch ev6", it will not compile correctly
anymore. No, it will compile and the code will work, but the result
behaves strange and false.
But, okay, i did not expect a solution, i only wanted to know if
someone can retrace that thing.
I think its useful to optimize the ssh-stuff, crypting/decrypting, so i
tried.
I will see what i can do.
Bye!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-12-14 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-13 5:00 Compaq C and ssh-1.2.27 and optimization Olaf Krische
1999-12-13 5:00 ` Jeff Sullivan
1999-12-14 5:00 ` Olaf Krische
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox