![]() |
Forum Index : Microcontroller and PC projects : Why 64bit integers?
Author | Message | ||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
Gotta be a bit of a memory hog, no? Really starting to like this stuff, mind. ![]() |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9588 |
Hello. Welcome to the forums. ![]() I am no expert, but as I understand it, the 64-bit integer support is just for those who need or want to work with such gigantic numbers directly without having to work with floating point or exponents. As far as I know, it is just a personal preference option that Geoff has put in the language so that if you want to work with large numbers easily, that is probably the way to do it. As to memory use, I have no idea, but I expect it can't be that horrific, or Geoff would not have agreed to do it. Someone with more knowledge then I will chime in with the correct answer for you, I'm just offering my thoughts. Smoke makes things work. When the smoke gets out, it stops! |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
Many times we were looking for 32 bit unsigned integers. Having 64 bit signed lets us work with 32 bit unsigned easily without the need for too many types to worry about. Jim VK7JH MMedit |
||||
isochronic Guru ![]() Joined: 21/01/2012 Location: AustraliaPosts: 689 |
Have a look at - http://www.thebackshed.com/forum/forum_posts.asp?TID=7336&KW=64+bit+integer |
||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
Thanks for the welcome, it's a great place to visit ![]() So, just to have say, a flag of 1 or 0, I have no option but to use 8 bytes? I guess I can get a whole bunch of flags out of one variable using AND/NOT/OR. You guys have any other speed/size optimization tricks? Cheers! Tinine |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3282 |
Well, you have a lot of RAM. Enough for over six thousand integer flags and if you use a float as your flag you get over twelve thousand without even using AND/NOT/OR. That must be enough ![]() The Micromite is about ease of programming, not tricky programming. Try using it in a few practical applications and you will find that you have plenty of resources. Geoff Geoff Graham - http://geoffg.net |
||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
Yeah, I'm definitely hooked. Don't have hardware yet but for the first time since I don't when, I actually RTFM ![]() Great product Geoff. Many thanks! |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |