can an os be wrritten in 6 months time

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

AVINASH posted that in 2001... For what purpose is there to revive such old topics and argue with someone who probably isn't even visiting these forums?
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Re: can an os be wrritten in 6 months time

Post by mathematician »

Tyler wrote: I reckon any of the long term OS Developers here could do that in only a few months.
You wouldn't want me to hold you to that would you? I would guess that it is probably around 50,000 lines of assembly code you're talking about.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

Far from all OSes are 100% assembly, Mine is rare enough to have the entire kernel in assembly.

For that matter, C kernels are easier to build once you know how to start. Plus, that you can borrow code from linux and earlier work and such :wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Post by mathematician »

But MS-DOS was 100% assembly. I doubt whether there were any compilers around when version 1 was written.
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Re: can an os be wrritten in 6 months time

Post by Tyler »

mathematician wrote:
Tyler wrote: I reckon any of the long term OS Developers here could do that in only a few months.
You wouldn't want me to hold you to that would you? I would guess that it is probably around 50,000 lines of assembly code you're talking about.
Well i wrote a compatable to MS-DOS four in four months, so assuming MS-DOS 1.00 contains less features, i'll happily take up your challenge next time i win the lottery and can quit my job in order to work on it full time for a few months.
Last edited by Tyler on Wed May 16, 2007 10:34 am, edited 1 time in total.
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Post by Tyler »

mathematician wrote:But MS-DOS was 100% assembly. I doubt whether there were any compilers around when version 1 was written.
...

...

:roll:

...

http://en.wikipedia.org/wiki/Compiler

...

Only 30 years out.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

Are you kidding mathematician? No C compilers when MS-DOS 1 was written?

The language has been used for quite a long time, It was designed by Dennis Ritchie in 1972.. He along with Ken Thompson and others developed Unix as well.

And even MS-DOS in it's later incarnations used the C language.. Most of the unities included were though.

http://en.wikipedia.org/wiki/C_%28progr ... anguage%29 --I advice you to read this...Carefully.
Last edited by Brynet-Inc on Wed May 16, 2007 11:02 am, edited 1 time in total.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
urxae
Member
Member
Posts: 149
Joined: Sun Jul 30, 2006 8:16 am
Location: The Netherlands

Post by urxae »

Perhaps he meant "compilers targeting the 8086" instead of compilers in general?
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Post by mathematician »

Brynet-Inc wrote:Are you kidding mathematician? No C compilers when MS-DOS 1 was written?
Don't teach your grandmother to suck eggs. I know where the C language come from. Prior to the days of ANSI C it was difficult to read anything about C without repeatedly tripping over the intials K&R; I just assumed that you would have been able to insert the words "for the x86" yourself.

MS-DOS programs only had 640kb of memory available to them, and even that was partly used up by the operating system. If MS-DOS hadn't been written in assembly, there would have been very little room left for anything else.
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Re: can an os be wrritten in 6 months time

Post by mathematician »

Tyler wrote:
mathematician wrote:
Tyler wrote: I reckon any of the long term OS Developers here could do that in only a few months.
You wouldn't want me to hold you to that would you? I would guess that it is probably around 50,000 lines of assembly code you're talking about.
Well i wrote a compatable to MS-DOS four in four months, so assuming MS-DOS 1.00 contains less features, i'll happily take up your challenge next time i win the lottery and can quit my job in order to work on it full time for a few months.
How may lines of assembly language did that run to? The shell alone cost me 20,000; admittedly it improved slightly upon the default option. Hopefully you will have included code to locate the InDOS byte, otherwise you would have had my TSR's crashing all over the place.
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Post by Tyler »

I have no idea how many lines of assembly it would have taken... as i wrote it in C, it was specification compatable but i doubt it would have actual run on a DOS period computer. As for undocumented stuff, i purposely included very little because i only wrote it to run old Apogee DOS games fast with the ability to easily implement a background watch on the code (something i never actually did)

Unfortunately for the Compiler argument; you stated neither that the compiler was C or x86... Making you 30 years out, but if you had mentioned that you meant 8086 compiler you would have been around 12 years out, and had you sepcifically said C (maybe you did actually but nevermind) you would have only been 3-5 years out as ones existed in the late 70's as Microsoft BASIC (the first real x86 program) became less useful.
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Post by mathematician »

Tyler wrote:Unfortunately for the Compiler argument; you stated neither that the compiler was C or x86... Making you 30 years out, but if you had mentioned that you meant 8086 compiler you would have been around 12 years out, and had you sepcifically said C (maybe you did actually but nevermind) you would have only been 3-5 years out as ones existed in the late 70's as Microsoft BASIC (the first real x86 program) became less useful.
I'm not sure I understand any of that. As for x86 compilers being around in the late 70's, it must have been the very late seventies, because the first in the x86 family of chips wasn't released until 1979. Microsoft began life, it is true, as a small company turning out stand alone Basic interpreters for the early micro-computers, which at that time were still very much toys.
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Post by Tyler »

mathematician wrote:
Tyler wrote:Unfortunately for the Compiler argument; you stated neither that the compiler was C or x86... Making you 30 years out, but if you had mentioned that you meant 8086 compiler you would have been around 12 years out, and had you sepcifically said C (maybe you did actually but nevermind) you would have only been 3-5 years out as ones existed in the late 70's as Microsoft BASIC (the first real x86 program) became less useful.
I'm not sure I understand any of that. As for x86 compilers being around in the late 70's, it must have been the very late seventies, because the first in the x86 family of chips wasn't released until 1979. Microsoft began life, it is true, as a small company turning out stand alone Basic interpreters for the early micro-computers, which at that time were still very much toys.
Apologies when i say x86 there imeant 8080... though i do know those compilrs where moved almost immediately to the 8086/8088
User avatar
osdp.vnx
Posts: 3
Joined: Sun Apr 29, 2007 2:16 am

yes

Post by osdp.vnx »

I think writing OS from scratch for a novice is a bit uphill task but neverthless not impossible. Just a strong will power high motivation and dedication...
Check list:
1. Good command over C and Assembly
2. X386 Arc understanding
3. Bios and boot process understanding


Lots of dedication....
well gud luck to u
I havent failed but has found 10,000 ways the things won't work :)
bontanu
Member
Member
Posts: 134
Joined: Thu Aug 18, 2005 11:00 pm
Location: Sol. Earth. Europe. Romania. Bucuresti
Contact:

Post by bontanu »

Yes it is possible ;) at least for me

250.000+ lines of assembly in less that 6 months (project time in IDE and I have left it idle for some days or night when I have fell asleep or went to shopping all day)

However the project did spread over many years since I could only write a few ASM lines every other weekend or so... some years I never had the time. The longest full work period was approximatively 2 months.

So yes it is possible even in full ASM but very unlikely if you are not very very experienced ...

For the average experienced coder it is much wiser to consider a few years at least.
Ambition is a lame excuse for the ones not brave enough to be lazy; Solar_OS http://www.oby.ro/os/
Post Reply