EmbeddedRelated.com
Forums

Programming a.out vs a.elf

Started by "=?U...@gmail.com [msp430]" May 22, 2017
Hi,

I'm working with msp430-gcc and I can program a.out using mspdebug fine
into my target.

Is there a benefit in generating and programming a.elf to the target?

--
Cheers,
μrt

Beginning Microcontrollers with the MSP430

On 05/22/2017 12:10 AM, μrt m...@gmail.com [msp430] wrote:
> Hi,
>
> I'm working with msp430-gcc and I can program a.out using mspdebug fine
> into my target.
>
> Is there a benefit in generating and programming a.elf to the target?
>

You seem to be confusing the default file name with the file format. The
file is in elf format and you can name it anything you like.

--
David W. Schultz
http://home.earthlink.net/~david.schultz
"Life without stock is barely worth living..." - Anthony Bourdain

Posted by: "David W. Schultz"



Sorry I was not clear. I'm referring to the format rather than the filename.

I am able to program *.out and *.elf with mspdebug

What is the difference?

I believe that *.elf can be stripped (symbols) for production runs.

Anything else I'm missing?

Thanks.

On Mon, May 22, 2017 at 1:03 PM, 'David W. Schultz'
d...@earthlink.net [msp430] wrote:

> On 05/22/2017 12:10 AM, μrt m...@gmail.com [msp430] wrote:
> >
> >
> > Hi,
> >
> > I'm working with msp430-gcc and I can program a.out using mspdebug fine
> > into my target.
> >
> > Is there a benefit in generating and programming a.elf to the target?
> > You seem to be confusing the default file name with the file format. The
> file is in elf format and you can name it anything you like.
>
> --
> David W. Schultz
> http://home.earthlink.net/~david.schultz
> "Life without stock is barely worth living..." - Anthony Bourdain

--
Cheers,
μrt
On 05/22/2017 07:42 PM, μrt m...@gmail.com [msp430] wrote:
> Sorry I was not clear. I'm referring to the format rather than the filename.
>
> I am able to program *.out and *.elf with mspdebug
>
> What is the difference?
>
> I believe that *.elf can be stripped (symbols) for production runs.
>
> Anything else I'm missing?
>

How are your getting a.out format from gcc?

msp430-elf-ld: supported targets: elf32-msp430 elf32-msp430 elf32-little
elf32-big plugin srec symbolsrec verilog tekhex binary ihex

--
David W. Schultz
http://home.earthlink.net/~david.schultz
"Life without stock is barely worth living..." - Anthony Bourdain

Posted by: "David W. Schultz"



Pardon, my ignorance. The default output file generated by gcc is named
a.out but it is elf format :-)
> How are your getting a.out format from gcc?
>