Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/06/08 06:34
Read: times


 
#154464 - No, it isn't.
Responding to: ???'s previous message
The "solutions" proposed require direct access to low-level features.

While particular compilers may offer specific "tricks" to do such things, the standard 'C' language does not.

So you're back to the same old thing: to do any of them, you'd have to know in advance what processor it is - and, once you know that, you already know its word size - don't you?!

List of 22 messages in thread
TopicAuthorDate
find the size of processor            01/01/70 00:00      
   C is not that portable!            01/01/70 00:00      
      thanks but could u clarify            01/01/70 00:00      
         I think you missed the point            01/01/70 00:00      
      Various compilers different results            01/01/70 00:00      
         Word size - not code size?            01/01/70 00:00      
            u r correct            01/01/70 00:00      
   Determining object sizes - at run time            01/01/70 00:00      
      Not quite            01/01/70 00:00      
         Correct !            01/01/70 00:00      
         not sure what you would do with the information            01/01/70 00:00      
            This was an interview question            01/01/70 00:00      
               More trick interview questions            01/01/70 00:00      
   I found the solution, Andy , Neil please comment            01/01/70 00:00      
      Great! Now do it in C            01/01/70 00:00      
         Same logic for C and asm            01/01/70 00:00      
            No, it isn't.            01/01/70 00:00      
      What would be the point?            01/01/70 00:00      
         It is worse than that            01/01/70 00:00      
   the whole question is silly            01/01/70 00:00      
      It can even get this silly...            01/01/70 00:00      
      It is an interview question            01/01/70 00:00      

Back to Subject List