3 ms·
Isn't "int" 64-bit on some (rare) architectures?
by self_awareness 3y ago
Isn't "int" 64-bit on some (rare) architectures?
- colejohnson66 3y agoNot sure about 64-bit `int`, but it is 16-bit on some 16-bit micros, such as the AVR line (used by the original Arduino).
- galangalalgol 3y agoTi dsps have 48bits for long.
- colejohnson66 3y agoYep. DSPs always have weird architectures, but in most cases, one isn't compiling the same code for multiple DSP architectures. As an example, the C2000 line has a 16-bit `char`; There is no support for "bytes".
- i_am_a_peasant 3y agoyeah i had 48 bit pointers on one asic. upper 16 bits selected memory partition/region
- grotorea 3y agoNot mentioned on the table I know https://en.cppreference.com/w/cpp/language/types https://en.cppreference.com/w/cpp/language/types edit: Oh you're right > Other models are very rare. For example, ILP64 (8/8/8: int, long, and pointer are 64-bit) only appeared in some early 64-bit Unix systems (e.g. UNICOS on Cray).
- terracottalite 3y agoMy computer being one of those (rare?) architectures. Though I think it is not entirely dependent on the processor and the OS choice also affects this.
- self_awareness 3y agoWhat machine are you using?
- terracottalite 3y agoUmm, sorry I remembered that wrong. Turns out int isn't 64 bits on my machine. I should double check before posting next time. (I mistaked long with int, and long isn't 64 bits on some systems). I can't delete it now.