Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Byte is compiler dependent, as well as all the rest of those defines. Many 'bytes' in default compiler configurations are more than 8 bits since modern CPU's are ineventibly more than 8 bits.
It it not always by eight, with C compilers the size of a byte is a compiler define, and on most modern architectures is not 8 bits, as that would be highly inefficient. ANSI C explicitly defines bit and byte size defines. But most other compilers do not. Most compilers will have a default bit depth for their most efficient optimization routines.
For me that's a very good explanation and I'll try to make some exercises and tests just to make sure I really understood... So for those of you that understand it very well, there are many people here that post some questions, like me, because they do not understand this kind of thing and do not have a programming experience then when you reply please put some examples... I have no problem to say I don't know and ask a question, but not all people do the same and they think they are bothering to ask again, You know what I mean... Besides there is a language barrier and not all people can express what they think or desire.
Thank very much Gramo and all I really apreciate your help.
When in doubt, just post away, don’t forget about the Proton Help file (probably the best source for all examples and explanations), and you have the whole **broken link removed** at your finger tips too
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.