Search:

Type: Posts; User: cuthbert

Search: Search took 0.00 seconds.

  1. vector var2 still can be complied by...

    vector<static int> var2 still can be complied by VC2005pro. But, it works just like the code without 'static' identifier.

    Thanks for your answers.
  2. What does the 'static' in "vector Data1024;" stand for?

    Hi folks,

    I am a newcomer to C++ and am reading a example code right now. In this example code, the author used a lot of
    vector<static DataType> somename;. I know the static vector...
  3. Our target is ARM 7 and we also know the fastest...

    Our target is ARM 7 and we also know the fastest and easiest way is to check the data sheet.
    The rest of work will be taken care of by compilers.

    * * * * * * * * * * * * * * * * * * * *

    When...
  4. Sorry, my way is meaningless. The address of...

    Sorry, my way is meaningless. The address of array elements is always increased along indexes.
    Maybe different dynamic objects can reflect the real order of memory allocation. I guass.

    Cuthbert
  5. Sorry, it's not about how to print the addresses....

    Sorry, it's not about how to print the addresses. Thank you.

    How to find out the memory arrangement in microprocessors or in its MMU using only software techniques?

    Cuthbert
  6. How do we know the memory arrangement using in microprocessors? Top-Bottom,Bottom-Top

    Hi folks,

    This question is a little deep into memory management of microprocessor.

    How do we know the memory arrangement using in microprocessors? Top-Bottom or Bottom-Top?
    For example, the...
  7. Replies
    51
    Views
    11,624

    The fastest way I found is using lookup table. ...

    The fastest way I found is using lookup table. For integer, 4 bytes long, it takes 4 additional operators only.

    And, this :


    for ( i = 0; i < sizeof(int)*8 ; i++ )
    count+= (mask& var>>i );...
  8. Replies
    51
    Views
    11,624

    How many bits are '1' in an integer variable?

    Hi folks,

    I am trying to find a more efficient way to count "How many bits are
    '1' in an integer variable?".

    I still have no idea to count the bits except using a loop and "if"
    statements....
  9. How many bits are '1' in an integer variable?

    Hi folks,

    I am trying to find a more efficient way to count "How many bits are
    '1' in an integer variable?".

    I still have no idea to count the bits except using a loop and "if"
    statements....
  10. Why GCC does warn me when I using gets() function for accessing file?

    After compiling the source code with gcc v.4.1.1, I got a warning message:
    "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be used."...
Results 1 to 10 of 10