Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 18:48 05 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Why 64bit integers?

Author Message
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 02:58pm 13 May 2016
Copy link to clipboard 
Print this post

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 Zealand
Posts: 9588
Posted: 04:53pm 13 May 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 6269
Posted: 06:44pm 13 May 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 689
Posted: 11:43pm 13 May 2016
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 1646
Posted: 01:05pm 14 May 2016
Copy link to clipboard 
Print this post

  Grogster said   Hello. Welcome to the forums.
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.


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: Australia
Posts: 3282
Posted: 02:31pm 14 May 2016
Copy link to clipboard 
Print this post

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

  Quote  You guys have any other speed/size optimization tricks?

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.

GeoffEdited by Geoffg 2016-05-16
Geoff Graham - http://geoffg.net
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 11:05pm 14 May 2016
Copy link to clipboard 
Print this post

  Geoffg said  Try using it in a few practical applications and you will find that you have plenty of resources.
Geoff


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!
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025