In C++, main MUST return int, but it can be omitted, like int main() { }
If the Pico is a microcontroller without an OS, it’s not supposed to “return,” it makes no sense. It’s like saying “what will you do after you are dead?” You’re supposed to loop forever or something.
Yes, but the standard mandates that you are able to declare it int.
The thing is, it doesn’t stop being void just because it’s declared as int. What is a WTF that needs to be documented. But also, there’s no reason for anybody to want it to be int…
As OP said, much smaller baby chip. The entire thing uses like 100-200mW while running. Its more like an arduino and you can also program and flash it with the arduino IDE.
After having done C in an x64 Linux environment using only clang, I was… Flabbergasted? At the myriad of components required to compile for this little piece of shi… I mean piece of wonderful hardware called ARM. 🥰🤣😱
I mean, you’re compiling for a different architecture and bare metal. Yeah, it’ll require quite a few different packages from what you typically use. 😊
At the myriad of components required to compile for this little piece of shi…
The toolchains used to compile code for embedded systems have always been very hard to use. They don’t do that on purpose, but I guess it’s because they are mostly into the hardware side of things, and they don’t follow good practices for the software, like writing useful scripts or functions.
Most of the time it’s a bunch of scripts that you have to run in a mystical order to create an environment that can build something. I don’t blame them, but they don’t care about polishing stuff because “it works on their machine.”
I’d argue it’s very polished in the Pico SDK. Install a few well defined packages needed for compilation, add three lines to your CMakeLists.txt and a provided script to your repository and it’ll sort out the rest.
In my life I’ve known exactly two people from Turkey, completely unrelated to each other as far as I know, and this guy reminds me of both of them.
Don’t get me wrong, I’ve seen footage and images of people from Turkey where there’s been nothing to remind me of my acquaintances other than the implicit ethnicity. This guy looks like he might be related to both of them without their knowledge.
Comments
In C++, main MUST return int, but it can be omitted, like
int main() { }If the Pico is a microcontroller without an OS, it’s not supposed to “return,” it makes no sense. It’s like saying “what will you do after you are dead?” You’re supposed to loop forever or something.
But I may be wrong…
No, you’re right, a single program runs at a time.
lowkey wanted to suggest writing a program to call other programs… Then I realized I am just suggesting writing a scheduler/init process.
So you might say the return code is void
You might even say the OS itself is void. VoidOS if you will.
hgha8jxUBEanWCk.jpg
Void of life.
Yes, but the standard mandates that you are able to declare it int.
The thing is, it doesn’t stop being void just because it’s declared as int. What is a WTF that needs to be documented. But also, there’s no reason for anybody to want it to be int…
Doesn’t RPi just run a Debian based distribution (though there are others it can run.) So why is the C/C++ SDK different than any other Linux distro?
As OP said, much smaller baby chip. The entire thing uses like 100-200mW while running. Its more like an arduino and you can also program and flash it with the arduino IDE.
This SDK is meant (?) for the Pico, which uses an ARM microprocessor, which in turn needs other libraries than x64 C.
Oh, you mean the Pico SDK? Yeah, good stuff. 🤩
After having done C in an x64 Linux environment using only
clang, I was… Flabbergasted? At the myriad of components required to compile for this little piece of shi… I mean piece of wonderful hardware called ARM. 🥰🤣😱I mean, you’re compiling for a different architecture and bare metal. Yeah, it’ll require quite a few different packages from what you typically use. 😊
Tell that to me two days ago 🤣
The toolchains used to compile code for embedded systems have always been very hard to use. They don’t do that on purpose, but I guess it’s because they are mostly into the hardware side of things, and they don’t follow good practices for the software, like writing useful scripts or functions.
Most of the time it’s a bunch of scripts that you have to run in a mystical order to create an environment that can build something. I don’t blame them, but they don’t care about polishing stuff because “it works on their machine.”
I’d argue it’s very polished in the Pico SDK. Install a few well defined packages needed for compilation, add three lines to your CMakeLists.txt and a provided script to your repository and it’ll sort out the rest.
Weird question: Is the pictured guy Turkish?
In my life I’ve known exactly two people from Turkey, completely unrelated to each other as far as I know, and this guy reminds me of both of them.
Don’t get me wrong, I’ve seen footage and images of people from Turkey where there’s been nothing to remind me of my acquaintances other than the implicit ethnicity. This guy looks like he might be related to both of them without their knowledge.
A8NXQgQFNJI7PKq.jpg
Sign in to comment. Sign in