Re: running GCC

2023-04-08 Thread Gregory Nutt
On 4/7/2023 9:02 PM, Victor Suarez Rovere wrote: Hi everyone! Considering that NuttX is POSIX compliant, can gcc or clang be run on NuttX? I was waiting to see if someone who has actually tried this would respond.  I haven't  tried to build a GCC toolchain on NuttX and can't say that it is im

Re: running GCC

2023-04-08 Thread Victor Suarez Rovere
So isn't GCC POSIX compliant? I mean a static build of gcc executable and nothing more (no make, awk or anything) The only thing that GCC does is read and write files The C library shouldn't be part of the equation since GCC can compile many C libraries Another compiler (besides clang) won't work s

Re: running GCC

2023-04-08 Thread Lwazi Dube
On Sat, 8 Apr 2023 at 14:46, Victor Suarez Rovere wrote: > > So isn't GCC POSIX compliant? I mean a static build of gcc executable and > nothing more (no make, awk or anything) > The only thing that GCC does is read and write files > The C library shouldn't be part of the equation since GCC can co

Re: running GCC

2023-04-08 Thread Gregory Nutt
Assuming that you have the resources and you can perform the build for a NuttX target, then there should be no problem.  The cross build of the toolchain for the NuttX target is the hard part. Most of the dependencies I list are GCC build dependencies, not run-time dependencies.  So depending

Re: running GCC

2023-04-08 Thread Gregory Nutt
Why not try it and see what obstacles you encounter? Maybe just the C pre-processor?  Or the linker or assembler from binutils? Perhaps you could try a partial build using the NuttX header files only.  If you could a relocatable object with just the NuttX header files, then you could link

Re: running GCC

2023-04-08 Thread Victor Suarez Rovere
Do you find any clear obstacle I'd find? I ask from the perspective of people that knows NuttX (not my case). Or are that obstacles completely unknown? What related obstacles where found when trying to compiling another tool, compatible with many Unix-like targets like the ones GCC can run on? El

Re: Hardcoded Pin mux, pad control and Drive Strength (AKA Slew-rate and Frequency) Settings #1570

2023-04-08 Thread Nathan Hartman
On Fri, Apr 7, 2023 at 9:58 AM Sebastien Lorquet wrote: > Thanks for the notification. > > Your proposal is mostly OK for me, I hope others will send reactions > too. I have just one concern. > > > If I attempt to rephrase the proposal: Starting from a commit in a > future, stm32h7 GPIO definitio