Hi Collin,
> I tried to print 64 bit integers on a Due and you cannot with the
> print routines.
I think I've wondered about this before and considered implementing it.
It should be a fairly trivial change, but in the current design all
number printing uses the same function (converting all numbers to 32-bit
now, I believe). This means that adding 64-bit printing will increase
size of all sketches that print numbers, even if they do not print
64-bit numbers, which could be considered a problem. I do think that
simply trying this and measuring the effect on code size of some test
sketches would be useful.
An alternative would be to have a separate 64-bit printing function, but
that again has the downside of requiring more code if you use both 64
and <= 32-bit printing in the same sketch.
Of course the same arguments can be made for having the 8-bit, 16-bit
and 32-bit printing in the same sketch, though these versions are
probable a lot more common than 64-bit printing, making the latter a bit
special.
> I plan to create all new routines specifically for 64 bit integers so
> that the normal print code doesn't need to use 64 bit integers and
> thus does not suffer. This is the only reason I can see that 64 bit
> support would not have been added.
W00ps, didn't read your message well enough the first time, you already
said pretty much what I mentioned above. A separate routing seems the
best approach to me, though perhaps you could try both approaches and
compare them?
Gr.
Matthijs