[Ilugc] C Questions
- From: Krish"<v_krishnakumar77@xxxxxxxxxxxxxx (Krish)
- Date: Wed, 18 Dec 2002 13:40:49 +0530
"Anoop Kumar Saxena"<AnoopS@xxxxxxxxxxx> wrote:
From: Krish [mailto:v_krishnakumar77@xxxxxxxxxxxxxx]
Sent: Wednesday, December 18, 2002 12:51 PM
To: Anoop Kumar Saxena
Subject: Re: RE: [Ilugc] C Questions
-----------Currently I am writing a chess engine and I have lost
considerable hair, alright :>)
Maybe I can be of help. I can finetune ur evaluation function. I'm a decent
chess player (my FIDE rating is 2215).
optimize ==> for(i = 0; i < 10; i++);
Simply unroll the loop !
How can you overload a function in C?
1. Macros in conjunction with the ability to change the name of the
generated assembly symbol ?
2. a precompiler ?
3. use a C++ compiler ;-)
----------Will it then be called overloading? Overloading essentially will
have to involve late binding and so the 1st 2 options are ruled out. 3rd
option is ummmm wellllllllllllllllll not admissible :>)
If you are talking about dynamic dispatch, then there are 2 options I can think
1. A VMT approach as used in C++ and most other OO languages.
This approach is fast but it is quite cumbersome to add features like
2. A runtime messenger approach as used in Objective-C and CLOS.
This approach although slightly slower offers tremendous flexibility. It is
very easy to add features like reflection, runtime loading of classes,
modifying methods at runtime, adding methods to existing classes etc. Another
advantage of this approach is that you can also dispatch events with the
btw, have u looked at Objective-C ?
--------------Now thats something really challenging. How about including
writing an operating system from the scratch? :>)
For your viewing pleasure, I've attached the source for an OS kernel !!!
To build the kernel, u need fasm (fasm.sf.net).
PS: apologies for the stupid ad below.
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy the best in Movies at http://www.videos.indiatimes.com
Now bid just 7 Days in Advance and get Huge Discounts on Indian Airlines
Flights. So log on to http://indianairlines.indiatimes.com and Bid Now
From A.Guru prasadh" <parthipatel@xxxxxxxxxxxxxx Wed Dec 18 09:39:14 2002
From: A.Guru prasadh" <parthipatel@xxxxxxxxxxxxxx (A.Guru prasadh)
Date: 18 Dec 2002 09:39:14 -0000
Subject: [ilugc] wvdial.conf help
Thanks for the friend who gave the AT commands link. The moment I
thought, if someone can help providing AT commands list so that i
myself rectify the problem, the mail came, thanks for friend's
Sometime ago somebody insisted to use ATX0 to stop expect dial
tone instead of ATZ(or some thing, i don't no).Thats why i used
ATX0, there is no secret. Also in windows i have to set the "don't
expect dial tone" option to connect the internet.
Before using i used ATX0, Linux can only be able to detect my
modem at the particular port.Whenever i dialed it gives "NO
DIALTONE". I thought my modem may be a winmodem. Now i can able to
dial but this time i get "NO CARRIER".Though now i got AT commands
list, I need some more help(step by step wvdial.conf configuration
would be nice).
\ ` /
The above ASCII image is:
Copyright (C) 2001, Free Software Foundation, Inc.
Other related posts: