Need startup help! :(

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.
Post Reply
blackhole89

Need startup help! :(

Post by blackhole89 »

Hello anyone.

I want to start making my own OS... so I read nearly all faqs on net, watched at nearly all examples and *tried* to compile nearly all free OSes. Nothing helped  :-[

So I ask anyone here :

1. Is there any recommendable example (main code C/C++,
   bootstrap ASM)
2. Is there a more recommendable environment than
   GCC,GPP,LD-ELF,NASM? Anything was uncompilable with
   them.
3. I don't want BIN,EXE,COM! Please, ELF!

;) [glow=green,4,300]blackhole89[/glow]
citizen428

Re: Need startup help! :(

Post by citizen428 »


3. I don't want BIN,EXE,COM! Please, ELF!
Here you can find lots of usefull information about OS Programming. In the section "File Formats" is a PDF about the ELF specifications.

Also you can try the newsgroup alt.os.development. You'll find lots of good information there.

HTH,
citizen428
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: Need startup help! :(

Post by df »

this may be a bizarre question for you, or you might recognise it... does Trapped Under Ice mean anything to you?

as for a few of your questions, if you want ELF, you have to go Watcom or GCC/ld/etc.

soon (when i get into gear) you will be able to use Visual Studio to write PE exe files that can be booted by GRUB..
-- Stu --
blackhole89

Re: Need startup help! :(

Post by blackhole89 »

Ok hello again -
I already work with gcc,gpp and a elf-able LD. Nice you reply, but

1. I don't want PE - I want to get as far away from Windows
   as possible :)
2. I asked for good startup examples which are correctly  
   compilable with GCC.


;) [glow=green,4,300]blackhole89[/glow]
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: Need startup help! :(

Post by df »

what do you mean correctly compile with gcc? i have no problems using GCC and names to compile a lot of the example code.

old code needs old gcc (usually 2.8.x or 2.7.x) since newer gcc changed a lot of the inline asm.

newer code usually needs the newer 2.9+ gcc and new binutils.
-- Stu --
darie

Re: Need startup help! :(

Post by darie »

"Trapped Under Ice" tells me something: Ride the Lightning and even more.

Does the new gcc compiler accept the standard ansi/borland inline asm? If no, can you give me an ideea of how to use Borland C++ Builder 5.5 to dev an OS. jloc is the linker would work but I need help to use it.
If you think that watcom C++ is as good or better and that I can use a different linker with it I'd appreciate help.
How do I use jloc to make an OS that writes a char on the screen. That's all I need to start?
I forgot: 32-bit C++
Thank you
dori

Re: Need startup help! :(

Post by dori »

I'm darie

I forgot to say that I need 32 bit flat binary as output. My bootloader loads into memory the following # of kb after the boot block(already in pmode and the a20 line is on) and jumps there.
Post Reply