OS?

Everything else that doesn't fall into one of the other PB categories.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

OS?

Post by Inf0Byt3 »

I'd like to ask you if anybody knows a basic programming language that isn't linked with Windoze. I mean a programming language that I can use to create an operating system.
Thanks.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: OS?

Post by PB »

I doubt you can write an OS in any version of Basic. To quote CodyMays:

Kernel development is not an easy task. This is a testament to your
programming expertise: To develop a kernel is to say that you understand
how to create software that interfaces with and manages the hardware. A
kernel is designed to be a central core to the operating system - the logic
that manages the resources that the hardware has to offer.


(Source: http://tinyurl.com/ng2la ).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

aaaa, ok. I think i will skip this part. Thanks for telling me... I dont want to make an OS anymore :D
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

In theory it would even be possible with pb, you would have to repalce FASM.exe with your own ap which gives the ASM code to FASM and tells it to produce an unliked flat binary, then you could use this together with a bootloader like grub, however you couldn't use any Pb libs in it, and you would have to change the ASM output by hand to kick out HeapAlloc_ and so on, but in thheory it would be possible^^
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Good idea, but pretty hard :(. I have made a search on google and found something really cool: Sphinx C--. The exes are really small (starting from 100 bytes :shock: ). I have tsted a sample with a primitive bootloader and it booted up !
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

The easiest way to create something like a operating system would be to fork a Linux Distro or use a plain Linux Kernel and then building the other stuff on top of it. I have a working c++ Example of a started Kernel project floating around here and also edited the sourcecode and did some tests with it, but making an os out of some simple Kernel is pritty hard, in fact it is one of the most complicated task in the computer world and near to impossible to accomplish alone.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

You could, technically, use PB. So long as you don't stray into any of using any library comands (as mentioned before) you'd be alright. Basically you'd be left with using logic (IFs), labels and expressions. Most of it would have to be inline ASM anyway. And, as also mentioned before, you'd have to create a binary file that had no relationship to any operating system.
~I see one problem with your reasoning: the fact is thats not a chicken~
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Now that's pretty hard. I would like to begin such a project, but i don't think i can do it all alone. Besides, I don't have nobody to work with, so it's a waste of time. Maybe in the future somebody will join me :)
For now I have 4 projects pending in PB so it's pretty hard.

PS: Nice idea about using PB. If I ever start this project, I'll adopt this method for sure :D

>And, as also mentioned before, you'd have to create a binary file that had no relationship to any operating system.

What about COM's? Is it allright to use'em?

Thanks.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post by Dreglor »

C, and asm are proably your best choice for starting a operating system
its an incredable amount of work to make one though
creating a dos-like os is difficult :\
~Dreglor
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

*bump*

Still, what shouldn't I use? Does anybody have a small code that would boot up? I know it's hard to make such a task, but I still want to try...
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Fred
Administrator
Administrator
Posts: 18352
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Why not trying to look at the linux kernel sources ? It's a good start to learn how to make an OS (which is a really challenging task).
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Thanks for the tip, I'll google for it. I found something like 'linux from scratch', maybe I could use it.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Lyon
User
User
Posts: 59
Joined: Tue Mar 28, 2006 9:26 pm

Post by Lyon »

Another alternative is to look at FreeDOS. It is much easier to follow the source for than than Linux's source :shock:
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

I found some interesting stuff on the net. This is beginning to capture my whole thoughts... Still, if it's PureBasic around, I'm in, if not, it would be very hard.

[Edit] I think I'll start using SphinxC--, it's wonderfull. Its syntax is a bit hard but i'm ready to learn. Too bad I can't use PB :(.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

When you hit the 40-billion-plus mark, remember your friends!
BERESHEIT
Post Reply