Mail Archives: djgpp/2000/05/02/04:55:54
DJ Delorie wrote:
>
> > Can DJGPP be used to compile binaries that will run standalone - i.e.
> > without DOS or Windows? I'm looking for a 32 C compiler to generate code
> > for an embedded project.
>
> It can, but it's not trivial.
Why *not* trivial? Just don't use LIBC and/or write replacement for functions
you need. GCC works fine for me... I do C (no C++) stuff.
I use GCC as a 32-bit compiler for my OS project. GCC is pretty good for that.
> If the CPU isn't an x86, you need to rebuild the whole toolchain (gcc,
> as, ld) from original sources as a cross-compiler.
>
> If the CPU *is* an x86, you still will probably have to use a custom
> linker script and write a small converter to convert the COFF output
> to whatever your target uses.
That's not a problem too.
I have some simple scripts that do all the job.
> You'll likely have to write support libraries as well, but that's a
> given with embedded programming.
bye.
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror: http://members.xoom.com/alexfru
- Raw text -