1. LINUX32, LINUX64 : I will stop using platform()

Just kidding. I have your attention now.

Now that 64-bit computing is coming out shouldn't we add more ifdef booleans to accomodate for them? We have DOS32, WIN32. Why not append the 32 to LINUX, OSX and FREEBSD and allow for conditional compiliation based on instruction word length? What about WIN64, LINUX32, LINUX64, FREEBSD32, FREEBSD64?

Ofcourse, these new boolean would just be always false for the current implementations but it sounds like 64-bit might just get off the ground soon. Let's paved the way for people to write portable code by allowing this now. Can we have a short debate and vote?

Shawn

new topic     » topic index » view message » categorize

2. Re: LINUX32, LINUX64 : I will stop using platform()

SDPringle said...

Now that 64-bit computing is coming out shouldn't we add more ifdef booleans to accomodate for them? We have DOS32, WIN32. Why not append the 32 to LINUX, OSX and FREEBSD and allow for conditional compiliation based on instruction word length? What about WIN64, LINUX32, LINUX64, FREEBSD32, FREEBSD64?

Personally, I think WIN32 etc is bad anyway. I think we should WIN, DOS, 32BIT. 64BIT as separate defines.

ifdef WIN then 
   -- do some generic windows stuff 
   ifdef 64BIT then 
      -- do some 64bit specific stuff for Windows 
   end ifdef 
end ifdef 
new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu