home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 984 of 2,753   
   Denis Washington to All   
   Integers on 64-bit machines   
   02 Jul 07 17:43:35   
   
   From: dwashington@gmx.net   
      
   Hello,   
      
   I'm currently developing a little C-like programming language as a   
   hobby project. After having implemented the basic integral integer   
   types like known from Java/C# (with fixed sizes for each type), I   
   thought a bit about 64-bit machines and wanted to ask: if you develop   
   on a 64-bit machine, would it be preferable to still leave the   
   standard integer type ("int") 32-bit, or would it be better to have   
   "int" grow to 64 bit? In this case, I could have an   
   architecture-dependent "int" type along with fixed-sized types like   
   "int8", "int16", "int32" etc.   
      
   What do you think?   
      
   Cheers,   
   Denis Washington   
   [I would make my int type the natural word size of the machine.  If people   
   want a particular size, they can certainly say so. -John]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca