Page 1 of 1

Compiler tools

Posted: Fri Aug 09, 2002 12:28 am
by Krom
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.

Re:Compiler tools

Posted: Fri Aug 09, 2002 1:12 am
by frank
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. :P

Re:Compiler tools

Posted: Fri Aug 09, 2002 1:18 am
by Krom
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.

Re:Compiler tools

Posted: Fri Aug 09, 2002 1:33 am
by frank
unix has a floppytool called dd, its pretty good...

Re:Compiler tools

Posted: Fri Aug 09, 2002 1:34 am
by frank
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)