Saturday, April 21, 2012

Re: [Cpp-Programming] Re: what's the difference of int and long on 32bit system?

Thanks, everyone. 

So CPU architecture determines which data models (ILP32, LP64 and etc) OS uses. Compiler has options, but it just uses the one determined by CPU and OS, if it doesn't want to incur too much performance penalty. If not considering cross-platform, there's no difference using int or long when developing applications on 32bit system. Is this correct?

--
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com.
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en.

0 Comments:

Post a Comment

<< Home