Timeline for Why do I get different results when compiling the same code with different ide?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 1, 2021 at 16:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Feb 1, 2021 at 16:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jan 2, 2021 at 16:02 | comment | added | timemage |
You could also get something of a fuzzy confirmation on whether float vs double is responsible by just altering your code to make use of float types everywhere. This includes using sqrtf rather than sqrt. As said, there may still be other differences, so the timing results may not completely converge.
|
|
| Jan 2, 2021 at 15:49 | answer | added | the busybee | timeline score: 1 | |
| Jan 2, 2021 at 14:35 | comment | added | Duncan C | It's not impossible to tell. You could compare the assembler generated by both. I'm not very familiar with AVR assembler, so I wouldn't be the best choice to do that analysis, but I'm sure somebody on this board could suss it out. | |
| Jan 2, 2021 at 12:51 | comment | added | Majenko |
Impossible to tell. Maybe Atmel studio is using actual double-precision values for double whereas Arduino uses only float (single precision).
|
|
| Jan 2, 2021 at 10:55 | history | asked | harun caliskanoglu | CC BY-SA 4.0 |