how i do compile a kernel in Borland C++ Builder 5

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
Bartman

how i do compile a kernel in Borland C++ Builder 5

Post by Bartman »

Hi

We can i compile a kernel in Borland C++ Builder 5. ::)

Please help me!!!!
Tim

Re: how i do compile a kernel in Borland C++ Build

Post by Tim »

TTBOMK C++ Builder cannot link to flat binary format, only PE (.EXE). This means that, unless you want to write a PE loader, you can't use C++ Builder to link your kernel.

In fact, I think C++ Builder is generally unsuited for OS development. You'd be better off with something like Cygwin (http://www.cygwin.com/) or DJGPP (which does support flat binary; http://www.delorie.com/djgpp/).
dorip

Re: how i do compile a kernel in Borland C++ Build

Post by dorip »

What if you use a linker that outputs flat binnary like jloc? And still use the borland compiller.
K.J.

Re: how i do compile a kernel in Borland C++ Build

Post by K.J. »

You have to learn how to use JLoc first(which I've kinda given up on).

If you go to this website:
http://alexfru.chat.ru/eindex.html

and look under bootsectors, you will find a bootsector that's able to load .EXE's (not sure though if it supports the PE kind though).

K.J.
shadowwolf

Re: how i do compile a kernel in Borland C++ Build

Post by shadowwolf »

What?

I read somewhere that Borland C++ Builder COULD do it.

I don't know how mind you, but I did read it somewheres :p

I'm pretty sure it can -- it's got all of the functionality of VC++6.0, but it's all command line stuff.  Read through the readme's.
Post Reply