>
> Yes, I have compiled Nuttx using Windows WSL and used virtual machine
> to run Nuttx. And it went well. I guess what I am trying to ask is the
> fundamental compiler/linking/computer questions.
> I understand that we can install Linux-compatible subsystem on windows
> to run Nuttx. But why isn't it possible to port to windows IDE, like
> Keil windows version?
That has been done in the past for both IAR and Keil. Those ports where
removed because they were never maintained.
There is informatino here:
https://bitbucket.org/patacongo/obsoleted/src/60ec01456d8b09f5b813a5fd8865cdbd5a0ccc20/ChangeLog#lines-357
The native Windows port is available as described in the top-level
README.txt and has been used with Visual Studio IDE in the past.
That native Windows port is seldom used these days and as thing progress
it gets some breakage ("bit rot"). I needs to be refreshed and
reverified. But full native windows support is available and has been
used with Windows IDEs in the past.
> Nuttx is a Posix operating system. Is it because of compiler/linking
> difference between windows system or Linux? Or is it because Nuttx use
> Linux library which of course can't be supported in windows?
NuttX uses nothing from Linux. It is an original POSIX OS. It uses no
libraries of any kind.
There are certain expectations of the build system. For the Windows
native port, those are met using GNUWin32 which is an old port of some
of the GNU tools to run natively on top of Windows. These are fully
compatible with Windows native mode. But, in general, the build system
adapts and uses standard commands from CMD.exe.
This is all discussed in the top-level README.txt file. You need to
spend some time to read that text file.
Greg