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.

Compiler/TMS320F28035: memcmp and memcpy - should size be in BYTEs (8-bit) or WORDs (16-bit)

Part Number: TMS320F28035


Tool/software: TI C/C++ Compiler

I'm using the #include <string.h> and memcpy, memcmp library functions.

Since the sizeof() function returns amount of 16-bit WORDs in an element, can I assume that also memcmp and memcpy relate to the size of 16-bit elements when supplying thm with a size parameter?

Thanks,

Mechi

  • Mechi Fendel said:
    can I assume that also memcmp and memcpy relate to the size of 16-bit elements when supplying thm with a size parameter?

    Yes.  Throughout the C28x CPU and tools, addresses are counted in terms of 16-bit words, and not 8-bit bytes.

    Thanks and regards,

    -George