Mail Archives: pgcc/1998/07/19/20:18:03
On Sat, Jul 18, 1998 at 02:00:15AM +0100, Vincent Diepeveen wrote:
> >This is quite interesting... are you sure that you compile these programs in
> >C mode as opposed to mcirosofts combined c-c++ thing? In C, there are many
> >clearly defined type conversions which need an explicit cast in C++.
>
> all c code, and initially you don't notice the casting problems.
No, I meant did you compile the C program in your compilers "C mode" or
"C++ mode", as these are two different languages, and C++ is much
pickier about casts. (There are other bad things in c++ as well ;)
> In fact it usually works ok. But i'm having masses of pointer structures
> and speedy things. I'll do anything to get faster, as long as i get
> lossless faster.
but casts don't impove the execution speed in any way.
> Most chessprograms engines are therefore in assembler.
>
> Mine isn't.
>
> Yet i have learnt a lot about C programming.
> And how well/bad compilers are.
;)
[the rest I will look at later]
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|
- Raw text -