compailing tutorials in linux

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator: Moderators

Post Reply
pswin
Posts: 15
Joined: Mon Jun 22, 2009 5:33 pm

compailing tutorials in linux

Post by pswin » Wed Jun 24, 2009 9:09 am

hi
how can i compaile tutorials in linux and execute them, i haven't floppy disk, under windows i am using VFDWin but in linux i cant find a program like that.

gedd
Posts: 12
Joined: Mon Jun 08, 2009 7:08 am

Re: compailing tutorials in linux

Post by gedd » Wed Jun 24, 2009 1:53 pm

First tutorials are made for windows compiler
So you must change some code (few) to do it
Second you need gcc, makefile, ld, ld script and asm competences

Ready, go

magorian
Posts: 1
Joined: Mon Jun 29, 2009 4:30 pm

Re: compailing tutorials in linux

Post by magorian » Mon Jun 29, 2009 4:51 pm

// Second you need gcc, makefile, ld, ld script and asm competences
The native Linux gcc/binutils can't produce PE executables, you'll need MinGW and you'll have to rewrite the whole inline assembly code.
If you want to get started with gcc/mingw inline assembly then this page is a pretty good place to begin

Andyhhp
Moderator
Posts: 387
Joined: Tue Oct 23, 2007 10:05 am
Location: 127.0.0.1
Contact:

Re: compailing tutorials in linux

Post by Andyhhp » Tue Jun 30, 2009 9:53 am

You dont neccesserally need to use PE executables. That was only because it was the default that MSVC uses.

If you are doing your development on Linux then it would be much easier to modifiy the kernel loader in stage2.asm to be able to load Elf binaries which GCC can nativly do.

~Andrew
Image

gedd
Posts: 12
Joined: Mon Jun 08, 2009 7:08 am

Re: compailing tutorials in linux

Post by gedd » Tue Jun 30, 2009 1:54 pm

magorian wrote:// Second you need gcc, makefile, ld, ld script and asm competences
The native Linux gcc/binutils can't produce PE executables, you'll need MinGW and you'll have to rewrite the whole inline assembly code.
It was implicit

For my part it was in binary format under cygwin.
Binary format is less complicated to adapt

pswin
Posts: 15
Joined: Mon Jun 22, 2009 5:33 pm

Re: compailing tutorials in linux

Post by pswin » Sun Jul 12, 2009 2:45 am

hi

tnx for ur helps

can u show me how to do it?
for example:
gcc ......


and how can i simulate floopy drive in linux ( like as vfd in windows)

Post Reply