How to make/link intel HEX format with gcc
Michael Meissner
meissner@cygnus.com
Thu Feb 17 08:02:00 GMT 2000
On Thu, Feb 17, 2000 at 03:29:16PM +0100, Jon Bäcklund wrote:
> Is it possible to get output from gcc as intel HEX format (i386). If so,
> how, what options is needed.
>
> If it is not possible, how can I make intel HEX-format in an other way?
>
> I use Cygwin32/gcc.
While the linker can be instructed to link directly to IHEX format, I find it
is usually better to let the linker link to it's native format, and then
convert it using the objcopy program:
gcc -o foo.exe foo.o
objcopy -O ihex foo.exe foo.ihx
--
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482
More information about the Gcc-bugs
mailing list