Related articles |
---|
Integers on 64-bit machines dwashington@gmx.net (Denis Washington) (2007-07-02) |
Re: Integers on 64-bit machines torbenm@app-3.diku.dk (2007-07-04) |
Re: Integers on 64-bit machines marcov@stack.nl (Marco van de Voort) (2007-07-04) |
Re: Integers on 64-bit machines emailamit@gmail.com (Amit Gupta) (2007-07-05) |
Re: Integers on 64-bit machines DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-07-05) |
Re: Integers on 64-bit machines anton@mips.complang.tuwien.ac.at (2007-07-05) |
Re: Integers on 64-bit machines mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2007-07-05) |
[21 later articles] |
From: | Denis Washington <dwashington@gmx.net> |
Newsgroups: | comp.compilers |
Date: | Mon, 02 Jul 2007 17:43:35 +0200 |
Organization: | Compilers Central |
Keywords: | arithmetic, design, comment |
Posted-Date: | 03 Jul 2007 22:09:41 EDT |
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]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.