size_t - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

size_t

Gregry2Gregry2 Posts: 607Member
i'm just wondering if anyone knows of any platform existant today in which !(sizeof(size_t)>1). Any platform means any.
{2}rIng

Comments

  • tsagldtsagld Posts: 621Member
    : i'm just wondering if anyone knows of any platform existant today in which !(sizeof(size_t)>1). Any platform means any.
    : {2}rIng
    :
    I can't imagine such a platform exists. size_t is (at least) an integer, thus 2 bytes on 16-bits platforms.


    Greets,
    Eric Goldstein
    http://www.gvh-maatwerk.nl


  • IDKIDK Posts: 1,784Member
    : : i'm just wondering if anyone knows of any platform existant today in which !(sizeof(size_t)>1). Any platform means any.
    : : {2}rIng
    : :
    : I can't imagine such a platform exists. size_t is (at least) an integer, thus 2 bytes on 16-bits platforms.
    :
    :
    : Greets,
    : Eric Goldstein
    : http://www.gvh-maatwerk.nl
    :
    :
    :
    In 8-bit proccessors an integer should be 1 byte, and therefor size_t should be the same.
  • Gregry2Gregry2 Posts: 607Member
    : : : i'm just wondering if anyone knows of any platform existant today in which !(sizeof(size_t)>1). Any platform means any.
    : : : {2}rIng
    : : :
    : : I can't imagine such a platform exists. size_t is (at least) an integer, thus 2 bytes on 16-bits platforms.
    : :
    : :
    : : Greets,
    : : Eric Goldstein
    : : http://www.gvh-maatwerk.nl
    : :
    : :
    : :
    : In 8-bit proccessors an integer should be 1 byte, and therefor size_t should be the same.
    :

    I was thinking of that. I'm just trying to make portable code, but porting to such a platform (a microcontroller) doesn't seem neccessary, I doubt a such a thing would need a bignum lib (it doesn't deserve such a classification, midnum sounds better ;-) )

    {2}rIng


Sign In or Register to comment.