Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Are integers in C assumed to be handled by a hardware spec or handled in software?

0
Posted

Are integers in C assumed to be handled by a hardware spec or handled in software?

0

By integer, I am referring to the primitive “int” The underlying idea being that if integers in C are not hardware dependent would it be a violation of standard to have gcc implement different integer handlers. This way you could have your traditional 32 bit int handler, and then you could also have handlers for 256 bit integers, or maybe even dynamic sized ints. I do know about long and long long, but I’m not sure if those are independent of that hardware provided, and I’d like to just specify the size/type of “int” handler to use when building a toolchain. I also understand the dangers of doing this (because building building 256 bit integers with a 32 bit integer compiler would be bad!), but for those bits of code that require something like a gmp library, I …

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123