|
Post by crazynate on May 20, 2009 16:16:05 GMT -5
I know anybody who reads this thread will probably say i can't accomplish it, but i am wanting to program my own operating system that can run both Windows and Mac applications. My questions are: -what would be the best computer language to use -would it mess my computer up if i tried to test it -would i need to make/buy a computer to compile, test, and use it -legal issues( such as using windows and mac) there are some other questions i have but i can't think of them at this time Any support will be appreciated
|
|
|
Post by Darkjester on May 20, 2009 16:21:15 GMT -5
GOOD LUCK youll need it. And yes its posible to screw your computer up, but that can be fixed by a fresh install of an os. And about hte legal issues you will have to look up the actual formats for the exectutibles structure to find that info.
|
|
|
Post by crazynate on May 20, 2009 16:32:43 GMT -5
Yes i know ill need alot of luck, would it be best if i first tried making an emulator of my desired operating system before i actually make it and where would i find that documentation for the files, google i assume
|
|
|
Post by UNDISCLOSED on May 21, 2009 3:55:54 GMT -5
For a start you will need a virtual macine, there are loads but I use bochs: bochs.sourceforge.net/For the PE COFF (Win32 exe and dll files.) Format look here: msdn.microsoft.com/en-us/magazine/cc301805.aspxFor mac-os executables I dont have a clue for the UNIX ELF format: en.wikipedia.org/wiki/Executable_and_Linkable_FormatHope this helps. and If you need me to, I can write various commandline tools that would run in 32bit protected mode DOS using CSDPMI Drivers. stuff you will need to write: - A bootloader (Written in asm, this is the last thing on my list!) - The kernel (Handles calls to the hardware) - The shell (The basic OS) - The GUI (All the pretty bits the standard every day user sees.) I am writing a DOS Based OS, it uses the FreeDOS kernel and I am still working on the command shell. And whatever you do, dont listen to people that say you should just do a custom linux build, just because bill gates cheated by using DOS, and I am cheating by using DOS, doesent mean you should!
|
|
|
Post by twasik4 on May 21, 2009 7:00:13 GMT -5
Good Luck crazynate. and personally i would ignore wolfman and try asking like darkjester or djlinux for help..
|
|
|
Post by UNDISCLOSED on May 21, 2009 7:46:58 GMT -5
Thats because you are a hater.
|
|
|
Post by twasik4 on May 21, 2009 8:15:52 GMT -5
no.. i just don't trust people like you..
|
|
|
Post by DJLinux on May 21, 2009 16:14:41 GMT -5
you are crazy now? ;D
sorry but don't try it, let it be!
you must be an very good assembler coder (like me :lol:)
spent your time for other complex things then an new OS
Today your new OS must support: PS2, USB Keyboard / Mouse IDE, USB and SATA HD drives thousand of different video cards etc.
take a look to the sources of the Linux Kernel and all the thousand of drivers
Trust me i wrote an protected mode OS in the 80' only for IDE drives PS2 and VGA (with vesa mode)
Joshy
|
|
|
Post by UNDISCLOSED on May 21, 2009 16:19:41 GMT -5
One thing I am doing also is writing a command terminal, and that is now bieng developed into a sort of sub os, i.e. I am making a graphical wraparound for the shell. The shell is buggy, and when I say buggy I mean if you launch it from a shortcut it cant find the bin directory, but V1.1 will fix this. Download it here: sites.google.com/site/terminal32soft/downloads/getlatestv1-0
|
|
|
Post by DJLinux on May 21, 2009 16:33:04 GMT -5
wolfman775 you don't like the Win32 console?
by the way good job so far
Joshy
|
|
|
Post by crazynate on May 21, 2009 17:57:02 GMT -5
Thanks for all the support Oh well, I did manage however to make a program in basic4gl that lets the user drag an icon around the screen with the cursor and place it in a desired location
|
|
|
Post by UNDISCLOSED on May 22, 2009 5:04:03 GMT -5
Its just a bit boring thats all. and besides commandlines are about all I can program.
|
|
cameron
Posts
A new take on the old ASCII smiley face, because thats how you feel after 16 hours of coding.
Posts: 70
|
Post by cameron on Feb 3, 2010 3:19:21 GMT -5
Right, everyone else has been ether giving you a bit of what you don't want to hear or being supportive which is what you get on the Basic4GL forum about these things.
But now, first of all, say you spend 8 hours every Saturday and 8 hours every Sunday, Friday or Thursday purely drinking coffe and researching, coding and educating yourself about this OS, IT WOULD TAKE 5 YEARS, hense why most of these types of things go open-collabrative because you might get it done under that time with some help.
Then I know you can get the old Mac OS/7 to OS/9 (M68k and PowerPC) 'Preferred Executable Formats' (PEF) from the legacy collection of the Apple Developer Connection but that takes a bit of digging arround though thier own search box and google's page index.
When I last went there I found finding their Intel executable format pretty hard to dig up, but that was a while back and I can't even remember the name of Mac OS/X format.
*Don't forget if Mac asks, your just a writing a assembler back-end for a compiler and you want to support the Mac OS.
Okay, now, the Microsoft COFF Executable format for DOS/Windows, is hard because they like using Relative Virtual Address to locate certain contents within EXE files, long story short RVAs need interpreting themselves. But the super awesomely understandable documentation can be found on the physcodellic Microsoft Developer Network (MSDN) in TWO CLICKS.
No, it actually took me two weeks to find it, but I went for the oldest version I could find because it made more sense than the updated version, LoL. (This is why we still code in DirectX 4 or 5 for 2D WinXP games is it not?)
Now next, to but all these information buzzing arround your head into executable code your going to have to use RAW 8086 assembly for the boot code, then the boot-loader or boot-strap program. Then that will load the kernel which you'll want running in protected mode so then it will be 80386 assembly atleast, so these x64 processors don't curl up and chuck a wobbly about it not being 32-bit or 64-bit Operating System (386 is 32-bit, and you could learn about x64 Assembly if you wanted but 386 is more for those comming off 8086).
After that stage of assembly whizzing arround in the head, we don't blame you if you want to write yet another C compiler for your Operating System so you don't have to read yet another 128+ pages on some C standard or C compiler and how to port it to your OS.
(And trust me, you will want to revert back to C once the assembly flicks over the OS into protected mode and wants to load a kernel executable file or library - YOU WILL WANT TO CODE THE KERNEL OR IF YOUR STILL GOING ASSEMBLY THERE ATLEST THE OS IN C - THEY ALL GO BACK TO C).
|
|
|
Post by Supermonkey on Feb 3, 2010 8:58:46 GMT -5
That was a joke....wasn't it? I want to develop an iphone app thats going to make me millions. I feel mine is a more realistic dream . This is the mecca for os development. www.osdever.net/
|
|
|
Post by crazynate on Feb 3, 2010 9:35:31 GMT -5
That was a joke....wasn't it? no, not really. i'll post a small demo later, that file is buried somewhere in one of my folders "around the screen" means "around the program's window"
|
|