Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.compilers > #281
| From | Robert A Duff <bobduff@shell01.TheWorld.com> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Any free compilers for 64-bit integer arithmetics? |
| Date | 2011-09-25 17:31 -0400 |
| Organization | The World Public Access UNIX, Brookline, MA |
| Message-ID | <11-09-031@comp.compilers> (permalink) |
| References | <11-09-024@comp.compilers> <11-09-026@comp.compilers> <11-09-030@comp.compilers> |
Mok-Kong Shen <mok-kong.shen@t-online.de> writes: > Am 22.09.2011 16:34, schrieb Robert A Duff: > >> All versions of GNAT support 64-bit arithmetic (signed and unsigned), >> whether or not the hardware directly supports it. > > Thank you very much for the advice. You're welcome. >...I have just installed the software > and I'll start to use it and learn thereby ADA programming which I have > postponed due to laziness up till now. I am very happy to know also > that it has support for C so that some of my C codes would be reusable. Right. GNAT is part of gcc (the Ada part). gcc also compiles C, C++, and several other languages. I suspect it supports 64-bit arithmetic for all languages, but I'm not sure. You can buy support for gcc Ada (and C, etc) from AdaCore, which is my employer. Or you can use the free software version, if you're a hobbyist who doesn't need support. If you are interested in mixing Ada and C in the same program, you should look at the section "Generating Ada Bindings for C and C++ headers" in the documentation. There is also support for mixing Ada and C++, with cross-language method overriding. > Besides it happens to be my luck that the software is a major new > version released only a few months ago. > > Out of curiosity I have a tiny question: Does the software somehow > finds out during installation whether the architecture on which it is > installed is 32-bit or 64-bit and correspondingly chooses the most > efficient way for machine code generation? No. If you install a binary package, you have to pick one, which is specific to some hardware and some operating system. If you pick the linux x86-64 version, for example, it will generate 64-bit code, which will work only on x86-64 linux. If you pick the linux x86 version, it will generate 32-bit code, which will work on both 32-bit and 64-bit hardware, on linux. And there are versions for windows and vxworks (cross compiler) and SPARC and power PC and so forth. If you build from sources, you can configure it for your system. But it's pretty complicated. - Bob
Back to comp.compilers | Previous | Next — Previous in thread | Find similar
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