Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

uint64_t in iccv7avr?

uint64_t in iccv7avr?

2012-06-26 by bobgardner@aol.com

I know its nutty to want to do 64 bit schtuff on an 8 bit micro, but its getting hard to find a microsd card thats less than 4GB, and those all need the 64bit vars in the structs for the fat32 vars.Yeah yeah, I know gnu seems to support them, but I cant get past the byzantine read_pgm_byte and progmem_P decorations. All those smart maintainers. Cant they just push all that stuff into the compiler somehow instead of those unreadable macros? Phew. That made me feel better for some reason. So if someone knows some way of some way of dealing with longlongs using the imagecraft compiler, I'd love to look at it. Looking fwd to reading any answers.

[Non-text portions of this message have been removed]

RE: [AVR-Chat] uint64_t in iccv7avr?

2012-06-27 by Ivan Vernot

Hi Bob,

I had an issue where I need to do 64bit Mult/Div and ICCAVR does/did not
support long long

So I rolled my own - well not exactly - Google is your friend.

Here's where I found the pointer I needed

http://www.hackersdelight.org/

 

One final 'hint' -  debug your math  functions on the PC (VS2010 does
support 64bit, GCC might - IDK)

Then you can compare your results with the 'native'  result.

 

HTH

Ivan Vernot
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of bobgardner@aol.com
Sent: Tuesday, 26 June 2012 10:09 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] uint64_t in iccv7avr?

 

  

I know its nutty to want to do 64 bit schtuff on an 8 bit micro, but its
getting hard to find a microsd card thats less than 4GB, and those all need
the 64bit vars in the structs for the fat32 vars.Yeah yeah, I know gnu seems
to support them, but I cant get past the byzantine read_pgm_byte and
progmem_P decorations. All those smart maintainers. Cant they just push all
that stuff into the compiler somehow instead of those unreadable macros?
Phew. That made me feel better for some reason. So if someone knows some way
of some way of dealing with longlongs using the imagecraft compiler, I'd
love to look at it. Looking fwd to reading any answers.

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]

RE: [AVR-Chat] uint64_t in iccv7avr?

2012-06-28 by John Samperi

At 09:34 AM 28/06/2012, you wrote:
>So I rolled my own -

So you haven't retired yet.... :-)



Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.