www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/01/22:46:00

Date: Mon, 1 May 2000 23:20:26 -0400
Message-Id: <200005020320.XAA20914@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <390e3ec3$0$72534$61169c8d@news.thebestisp.com>
(spectrac AT thebestisp DOT com)
Subject: Re: Embedded programming
References: <390e3ec3$0$72534$61169c8d AT news DOT thebestisp DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019