I see all the people likes to use GCC or something like that to compile their projects. Personaly i dont use it(i dont like), i will explain what i use it as another alternative. Maybe in the future i'll use GCC but i dont like it.
I use 3 programs, all of then run on msdos.
1- C compiler: CC386 by Ladsoft. This compiler takes the C source code and make NASM source code. I do this way so i can make some changes in the ASM code(just in case i need).
2-ASM compiler: NASM. works fine for me, but i found a bug in last version so use an old one.
3-Linker: JLOC by John Fine. This is the best linker, the only problem is that need a control file for every application, it is dificult to use at the begining, but you have total control over link time.
The steps i follow are:
1-Compile with CC286 and make ASM files
2-Compile with NASM and make .obj files
3-Link with jloc
4-It WORKS.
I recommend to use one "make" program to make things easy.
Compiler tools
Re:Compiler tools
I use gcc and nasm, however my gcc code won't boot right yet..
I like gcc.
You probably never used the real gcc since your in msdos.
I like gcc.
You probably never used the real gcc since your in msdos.
Re:Compiler tools
I have use GCC, i have linux and windows. I use CC386 and the other because i can copy all(executables and documentation) to a floppy disk, and i can go anywhere in the world and continue programming my OS. That means i program in home, work, or whatever place i'm on.
I'll say i hate linux and i hate windows, i havent see a operating system that you can say is good, so the only thing we can do is hold on.
I'll say i hate linux and i hate windows, i havent see a operating system that you can say is good, so the only thing we can do is hold on.
Re:Compiler tools
you can easily copy bootsectors...
dd if=boot of=/dev/ad2
(/dev/fd0 in your opinion)
or skip sectors...
dd if=boot seek=1 of=/dev/ad2
(it will now put it on the second sector)
dd if=boot of=/dev/ad2
(/dev/fd0 in your opinion)
or skip sectors...
dd if=boot seek=1 of=/dev/ad2
(it will now put it on the second sector)