Re: 64 bit data types



"Florent Ouchet" <ouchet.florent@xxxxxxxxxxx> wrote in message
news:43de9507@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> > According to MS's and AMD's recommendations, generic integer *data*
> > types, ie. Integer and Cardinal, should remain 32 bits, leaving 64 bit
> > to explicit 64 bit types.
>
> That's very bad news for libraries that need to compile on various
> platforms (32 bits and 64 bits), many lines will have to be rewritten :(

Unless you are casting pointers to integers or longints, there shouldn't be
much trouble. We have always known that such a cast is liable to run in to
trouble. I think we will be able to write code and libraries which compile
32/64 bit with no trouble.

You can still store a 32 bit integer in a 64 bit object reference or pointer
variable: e.g. in a TList.

I suspect I have zero problems in my own code. Imagine how much strife a
bad C programmer will have, with a typecast on every 3rd line ! At least
they will get compiler warnings, I assume.

Roger Lascelles



.



Relevant Pages

  • Re: Carrying Libraries on Your Back...
    ... > Why not build on an installed based of assemblies, ... > than porting libraries around, ... download source code ... compile local source against header files ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Using Lattice ispLEVER with VHDL libraries
    ... I am assuming there are some advantages to using the IDE rather than ... I also can't see to get Modelsim to work with ispLever, ... You will have to read about the tool you use to specify compile ... user defined libraries to get things to go under ispLever. ...
    (comp.arch.fpga)
  • Re: Getting started on the HP49g+
    ... either the original HP extable lib ... extable2 lib from http://www.hpcalc.org/details.php?id=3940. ... ask again if you have any problem installing libraries. ... compile the string with ASM (listed in the development lib menu, ...
    (comp.sys.hp48)
  • Re: hid.dll & VC++ 6
    ... but never to compile code based upon any current WDK. ... I'm tasked with writing an application to communicate with a USB card ... missing ')' before identifier 'HIDP_REPORT_TYPE' ... pointed it at the headers and libraries and it worked for a bit until i ...
    (microsoft.public.win32.programmer.kernel)
  • Re: <ctype.h> toLower()
    ... If it's a free standing implimentation, then the scope of the standard is ... > considering portability if makes a heck of a big difference.. ... the code you write will work on /any/ machine you compile it for (if ... the platforms provide the same libraries or even the same program entry ...
    (alt.comp.lang.learn.c-cpp)