www.digitalmars.com         C & C++   DMDScript  

c++.command-line - DMC for OS stuff?

reply =?iso-8859-1?Q?=22Robert_M._M=FCnch=22?= <robert.muench robertmuench.de> writes:
Hi, I think I asked it once but couldn't find my old post:

Is it possible to use DMC to generate flat binary files with no 
relocations, headers or any other information? I want to be able to write 
a "simple kernel" that can be loaded by GRUP.

If someone has an example please let me have a look :-)) Thanks.

-- 
Robert M. Münch
Management & IT Freelancer
http://www.robertmuench.de
Jan 10 2004
parent reply "Walter" <walter digitalmars.com> writes:
"Robert M. Münch" <robert.muench robertmuench.de> wrote in message
news:opr1jyf3lyum5vd8 news.digitalmars.com...
 Hi, I think I asked it once but couldn't find my old post:

 Is it possible to use DMC to generate flat binary files with no
 relocations, headers or any other information? I want to be able to write
 a "simple kernel" that can be loaded by GRUP.
Those are generated by the linker. The linker can do it for 16 bit files, they're called "COM" files.
Jan 10 2004
parent reply =?iso-8859-1?Q?=22Robert_M._M=FCnch=22?= <robert.muench robertmuench.de> writes:
On Sat, 10 Jan 2004 11:55:31 -0800, Walter <walter digitalmars.com> wrote:

 Those are generated by the linker.
Hi, yes of course. Sorry.
 The linker can do it for 16 bit files, they're called "COM" files.
Ok, so no 32 bit support? Can someone enlight me a bit about a tool chain that uses DM tools for OS stuff? I want to play around and test some implementation things. -- Robert M. Münch Management & IT Freelancer http://www.robertmuench.de
Jan 11 2004
parent "Walter" <walter digitalmars.com> writes:
"Robert M. Münch" <robert.muench robertmuench.de> wrote in message
news:opr1lxanb9um5vd8 news.digitalmars.com...
 On Sat, 10 Jan 2004 11:55:31 -0800, Walter <walter digitalmars.com> wrote:

 Those are generated by the linker.
Hi, yes of course. Sorry.
 The linker can do it for 16 bit files, they're called "COM" files.
Ok, so no 32 bit support? Can someone enlight me a bit about a tool chain that uses DM tools for OS stuff? I want to play around and test some implementation things.
It wouldn't be hard to write a program to map a PE onto a flat file. Use dumpexe to see the layout.
Jan 11 2004