Page 1 of 1

compailing tutorials in linux

Posted: Wed Jun 24, 2009 9:09 am
by pswin
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.

Re: compailing tutorials in linux

Posted: Wed Jun 24, 2009 1:53 pm
by gedd
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

Re: compailing tutorials in linux

Posted: Mon Jun 29, 2009 4:51 pm
by magorian
// 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

Re: compailing tutorials in linux

Posted: Tue Jun 30, 2009 9:53 am
by Andyhhp
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

Re: compailing tutorials in linux

Posted: Tue Jun 30, 2009 1:54 pm
by gedd
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

Re: compailing tutorials in linux

Posted: Sun Jul 12, 2009 2:45 am
by pswin
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)