I want to build an OS on windows

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: I want to build an OS on windows

Post by kzinti »

SiliconOS wrote:Oh, I want to build for x86_64bit pascal
SiliconOS wrote:I'm trying use C++ to write the OS
Very confusing. You want to use Pascal, C++ or both?
SiliconOS
Posts: 17
Joined: Sun Feb 14, 2021 12:41 am

Re: I want to build an OS on windows

Post by SiliconOS »

kzinti wrote:
SiliconOS wrote:Oh, I want to build for x86_64bit pascal
SiliconOS wrote:I'm trying use C++ to write the OS
Very confusing. You want to use Pascal, C++ or both?
C++, although Pascal is easy to write, but I think Pascal couldn't call any Pascal's function
SiliconOS
Posts: 17
Joined: Sun Feb 14, 2021 12:41 am

Re: I want to build an OS on windows

Post by SiliconOS »

And a reason......
I don't have any servers.
So, it might be more and more harder build x86_64 elf on Windows
SiliconOS
Posts: 17
Joined: Sun Feb 14, 2021 12:41 am

Re: I want to build an OS on windows

Post by SiliconOS »

My hopes are a CLI, have a shell(hpsh-hyperon shell)
User avatar
bzt
Member
Member
Posts: 1584
Joined: Thu Oct 13, 2016 4:55 pm
Contact:

Re: I want to build an OS on windows

Post by bzt »

SiliconOS wrote:I'm trying use C++ to write the OS
In that case you can find the C++ example kernel here, mykernel/cpp
SiliconOS wrote:I don't have any servers.
What kind of servers are you talking about? There are no servers involved in this.
SiliconOS wrote:So, it might be more and more harder build x86_64 elf on Windows
FreePascal can generate both ELF and PE on both Linux and Windows systems. For C++ you could use LLVM CLang, that can generate both ELF and PE on both Linux and Windows. Otherwise for GNU gcc you'll need a cross-compiler. Try MSYS2, it can install many different compilers for you, gcc cross-compilers included. Or use WSL.
SiliconOS wrote:My hopes are a CLI, have a shell(hpsh-hyperon shell)
Not so long ago it was a GUI. You can do both, GUI and a CLI, and it doesn't matter in which order you implement those. For a CLI, you probably want to implement a VT100 emulator first, then a shell. For GUI, see GUI first, and then when you have a windowing system, you can emulate VT100 in a window, and run the same shell in that.

Maybe you should start with the basics (that page explains the difference between GUI, CLI and shell), and it would worth reading the beginner mistakes too.
kzinti wrote:Very confusing.
Agreed. Looks like the OP doesn't know what they want.

Cheers,
bzt
trolly
Member
Member
Posts: 52
Joined: Tue Mar 25, 2008 12:26 pm

Re: I want to build an OS on windows

Post by trolly »

I have successfully used freebasic + fasm to build my os under windows
Post Reply