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


Is the integer controlled by hardware spec or handled in software?

By integer, I am referring to the primitive "int"

The underlying idea is that if the integer hardware in C does not depend on it, then this GCC will be assigned to different integer operators This will violate the standard to implement, in this way you can create your traditional 32 bit int handler, and then you can also handle handlers for 256 bit integers or maybe the dynamic size.

I know for a long and long time, but I'm not sure whether they are independent of that hardware, and I use only the size and type of "int" "I want to specify handler.

I also understand the dangers of taxation (because the building will be screwed with 256 bit integers with the 32 bit integer compiler!), But for those bits code what GMP Library is required, It seems that this code will make reading much better. Compatibility will be the same but the dependency code will be on the compiler instead.

Crazy thoughts, I know ... but back to the original question:

Integers are handled by a hardware spec in C or can be handled in software?

standard is called

a "plain" int Object execution is the natural size suggested by the architecture of the environment (it is sufficient to include any value in the range INT_MIN INT_MAX as the header & Lt; limits.h & gt; ).

and & lt; Details of the boundary .h & gt; Blocking INT_MIN should be at least 32767 and INT_MAX at least 32767. So if your hardware has a word of 12 bits, then you have to use two words for int .


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -