Skip to main content
19 events
when toggle format what by license comment
Feb 20, 2014 at 9:57 comment added Peter Bloomfield @FakeName Relying on some of the stdint types for compiler portability isn't always a good idea because they won't necessarily exist. Things like uint32_t will not be defined if the compiler doesn't support a type matching the specified size. Therefore, where exact size is not critical, it may be better to use more generic types.
Feb 20, 2014 at 3:03 review Reopen votes
Feb 21, 2014 at 2:07
Feb 17, 2014 at 3:52 comment added Connor Wolf @TheDoctor - If you rewrite this question to be better phrased, it would probably be reopened. Right now, there is no evidence of even understanding what the difference between types.
Feb 17, 2014 at 3:49 comment added Connor Wolf It should probably also be mentioned that no one should use int, long, long long or similar variable declarations anyways. They should be using the types defined in <stdint.h> (e.g. uint8_t, int16_t, etc...), since int does not have a specified size in C/C++, and making compilation behaviour dependent on compiler implementation defined behaviour is irresponsible.
Feb 14, 2014 at 18:32 comment added JohnB I can understand the practicality of this question based on your answer, but from the question it's not immediately clear to me. Perhaps rewording the title to something like "What are the limits of the data types on the Arduino platform?"
Feb 14, 2014 at 15:50 comment added mpflaga The question was in context of specific usage and differences from that when used in Arduino.
Feb 14, 2014 at 14:37 review Reopen votes
Feb 14, 2014 at 16:40
Feb 14, 2014 at 14:21 history edited TheDoctor CC BY-SA 3.0
edited body
Feb 14, 2014 at 14:07 history edited TheDoctor CC BY-SA 3.0
trying to make it viable for this SE
Feb 14, 2014 at 14:01 comment added TheDoctor First of all, arduino programmers may not want to go to SO to get their questions answered. second of all, The Arduino has very limited ram, so variable choice based on variable size is important.
Feb 14, 2014 at 13:20 comment added Cybergibbons I think this question has value as these are not standard types. Explaining how the map from Arduino to avr-gcc is important.
Feb 14, 2014 at 12:30 history closed asheeshr
Butzke
Ricardo
Peter Bloomfield
The Guy with The Hat
Not suitable for this site
Feb 14, 2014 at 11:50 comment added Peter Bloomfield While I'm inclined to agree that this isn't entirely on-topic, I suppose it's worth noting that the types available using the Arduino IDE aren't exactly the same as regular C++. Notably, the type names boolean, byte and word. are not standard C++. Additionally, the String class is nothing like the C++ std::string. Perhaps a more specific question about the differences is warranted?
Feb 14, 2014 at 4:37 review Close votes
Feb 14, 2014 at 12:30
Feb 14, 2014 at 3:47 answer added mpflaga timeline score: 5
Feb 14, 2014 at 3:26 comment added hichris123 Could just be me, but this doesn't seem on-topic. I mean, it's basically an SO question. Maybe a topic for a Arduino Meta question?
Feb 14, 2014 at 3:17 review Low quality posts
Feb 14, 2014 at 12:31
S Feb 14, 2014 at 3:01 answer added TheDoctor timeline score: 3
S Feb 14, 2014 at 3:01 history asked TheDoctor CC BY-SA 3.0