Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.compilers > #275

Re: Any free compilers for 64-bit integer arithmetics?

From glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups comp.compilers
Subject Re: Any free compilers for 64-bit integer arithmetics?
Date 2011-09-21 03:28 +0000
Organization Aioe.org NNTP Server
Message-ID <11-09-025@comp.compilers> (permalink)
References <11-09-024@comp.compilers>

Show all headers | View raw


Mok-Kong Shen <mok-kong.shen@t-online.de> wrote:

> I want to do unsigned integer arithmetics on 64-bit opearands running
> on 64-bit Windows. Are there any free compilers of any higher-level
> language (higher than assembly language) that could be used for that
> purpose? Thanks.

Many compilers will do unsigned (and signed) 64 bit arithmetic even on
32 bit machines.  For free compilers, gcc is very popular.

Most processors offer addition and subtraction at their native width,
multiplication with a double width product, and divide with a double
width dividend.  If you want more, you, or the library of your
compiler, have to combine those as needed.  Add, subtract, and
multiply are easy, divide is a little harder.

Java, also available free, supports a 64 bit type (long).

-- glen

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Any free compilers for 64-bit integer arithmetics? Mok-Kong Shen <mok-kong.shen@t-online.de> - 2011-09-20 22:44 +0200
  Re: Any free compilers for 64-bit integer arithmetics? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2011-09-21 03:28 +0000
  Re: Any free compilers for 64-bit integer arithmetics? Robert A Duff <bobduff@shell01.TheWorld.com> - 2011-09-22 10:34 -0400
    Re: Any free compilers for 64-bit integer arithmetics? Mok-Kong Shen <mok-kong.shen@t-online.de> - 2011-09-24 11:18 +0200
      Re: Any free compilers for 64-bit integer arithmetics? Robert A Duff <bobduff@shell01.TheWorld.com> - 2011-09-25 17:31 -0400

csiph-web