Mail Archives: djgpp/2000/05/01/22:46:00
> 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.
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.
You'll likely have to write support libraries as well, but that's a
given with embedded programming.
- Raw text -