www.digitalmars.com         C & C++   DMDScript  

D - Generate platform independent output

reply "Benjamin Kalytta" <bkausbk-nospam- web.de> writes:
Hi all,

Im a developer of an operating system. We are using gcc at this moment. But
gcc is very buggy and
we are looking for a new compiler now. So I decided looking back to
digitalmars. Some years ago
I found this site. Is it possible digitalmars d/c/c++ compiler to generate
platform independet
code?
What this actually means is:

-We provide our own libc
-We provide our own runtime library
-We need actualy only simple code (c but no c++, may be d)
-We do not need classes and templates, constructors, destructors ... and
such things
-We don't want to use any windows libraries, but we use pe-coff object as
binary (without dos-exe header)
-We use 4GB flat memory modell

Is this possible with digitalmars c/c++/d/ compiler?

rg
Benjamin Kalytta
Nov 02 2002
parent "Walter" <walter digitalmars.com> writes:
"Benjamin Kalytta" <bkausbk-nospam- web.de> wrote in message
news:aq1h49$2o9c$1 digitaldaemon.com...
 Hi all,

 Im a developer of an operating system. We are using gcc at this moment.

 gcc is very buggy and
 we are looking for a new compiler now. So I decided looking back to
 digitalmars. Some years ago
 I found this site. Is it possible digitalmars d/c/c++ compiler to generate
 platform independet
 code?
 What this actually means is:

 -We provide our own libc
 -We provide our own runtime library
 -We need actualy only simple code (c but no c++, may be d)
 -We do not need classes and templates, constructors, destructors ... and
 such things
 -We don't want to use any windows libraries, but we use pe-coff object as
 binary (without dos-exe header)
 -We use 4GB flat memory modell

 Is this possible with digitalmars c/c++/d/ compiler?

Yes, it's entirely possible. You'll need the Digital Mars CD which comes with the complete library source, and then you can modify it to suit.
Nov 06 2002