|S record format with gnu compiler ? firstname.lastname@example.org (Chris Jones) (1997-03-05)|
|Re: S record format with gnu compiler ? email@example.com (James Carlson) (1997-03-07)|
|From:||James Carlson <firstname.lastname@example.org>|
|Date:||7 Mar 1997 21:35:10 -0500|
> I am looking for info on using the gnu compiler to generate motorola s
> record format files.
> Anyone know if this is possible?
Both possible and easy. You need a flag on the linker, not the
compiler. On Gnu "ld" set "-oformat srec", or from the GCC command
line use "-Xlinker -oformat -Xlinker srec".
Use "objdump -i" to make sure your Gnu tools are configured to
generate "srec" output.
> [GCC doesn't generate any object format at all -- it generates assembler
> source. I expect it wouldn't be very hard to write a translator from the
> gas a.out format to any other format you need. -John]
Also true. Though, of course, gas generates a lot more than just
a.out these days -- the default is ELF on many platforms.
Return to the
Search the comp.compilers archives again.