As I mentioned...I dont want long and pointers to be as 32 bit in 64 bit machine..I also dont want to generate 32 bit code by using -m32....I just want that on 64 bit machine if I am assigning long...
You are right on the point that I want to know the architecture of the CPU. Doing "isainfo" on Solaris gives the CPU architecture but the command is not working on Linux. I also did...
Thanx for your reply. Carefully looking at the code gave me idea that making that variable as unsigned long is harmless. So I made it as unsigned long.