This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

64 bit data will support in msp430g2533- iar workbench

64 bit data will support in msp430g2533- iar workbench if so pls give me which type can i use?

  • If you

    #include <stdint.h>

    you can use the data types

    int64_t // signed 64 bit integer

    and

    uint64_t // unsigned 64 bit integer

    And if you set the right option in the settings, then the datatype

    double

    is 64 bits as well.

    Dennis

  • Hi,i got error
    Fatal Error[Pe1696]: cannot open source file "stdint.h" C:\Users\c-achandramohan\Desktop\PUMA1.1SCM_Development\SOURCE\maincobra.c 25
    so i am directly using unsigned long long its working.Thanks,Akila.
  • The basic instructions of MSP430 operate on either 8-bit or 16-bit data. The inclusion of a "carry-bit" make is very easy to cascade 8-bit or 16-bit into data with more bits. Rather smallish memory size and slowish execution time are the limiting factors.
  • Are your paths to the header file directories set properly? Try

    #include "stdint.h"

    instead. Without using stdint.h you can use the datatype

    unsigned long long

    and

    signed long long

    IAR Embedded Workbench supports 64 bits since version 1.4, I think.

    Dennis

  • The IAR tools comes with two sets of libraries, each with their own set of header files. The modern DLib library provides an stdint.h whereas the older CLib does not. (The reason for providing two libraries is strictly for backward compatiblity, if you write new code, make sure you use the DLib library.)

    -- Anders Lindgren, IAR Systems

**Attention** This is a public forum