netmaestro wrote: ↑Fri Nov 26, 2021 9:44 pm
So when we push 'compile/run' from the IDE with Beta 1 for Windows are we automatically getting the C backend?
No,
you must add the pbcompilerc over preferences of the IDE to the compilers
StarBootics wrote: ↑Sat Nov 27, 2021 12:52 am
I know the algorithm responsible for the normal smoothing but it will take time to narrow down the problem of what is happening differently between the None Optimize and the Optimize output done by the C Backend.
I have found the problem, with the ASM Backend and the C Backend without optimization the type recast seems to take care of it but the C Backend with optimization apparently don't. I mean using a ".b" return value for a Boolean purposes. Which is not the way to go with the C Backend and lead to problems.
To make a long story short use integer (-9223372036854775808 to +9223372036854775807) type for Boolean purposes even if it appear to be overkill for storing 0 or 1.
Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
With the optimization of GCC, it seems to have caught up with you now.
I know now and if you check carefully I have edited the code to reflect that. It didn't took me many hour of investigation to figure out the problem. That being said I don't like that especially when you deal with binary files. Read/Write Integer don't use the same space inside a file depending on which system it was created 32 bits or 64 bits system. So you need to solve this issue, one way is to include a binary file header describing that aspect so a binary file written on 32 bits systems can be read on 64 bits systems and vice-versa. And this is something I would like to avoid at all cost.
Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
Will there be a sub-forum for reporting Raspberry bugs?
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Thank you Fred, Andre and Timo. You have made an old man happy.
Total love for the PB 6 and the pi version. You guys are the best. I've put off going out on a date tonight to try the pi version
If you come to Oz I will shower you with drugs, alcohol and women, or boys if you wish.