EmbeddedRelated.com
Forums

Create Assembler List file with mspgcc and eclipse

Started by steven_wetzel May 1, 2007
Hi,

how can I create an assembler list file with mspgcc and eclipse?
Everything I do creates an error. Manipulating the makefile is
impossible because it's always new created.

Beginning Microcontrollers with the MSP430

On 2007-05-01, steven_wetzel wrote:

> how can I create an assembler list file with mspgcc

Add the following flag to the gcc command line in the makefile:

-Wa,-ahld=$(@F).l

> and eclipse?

I don't anytying about eclipse. IDEs are a huge waste of time.
Writing software with an IDE is like trying to swim while
wearing a straight-jacket.

> Everything I do creates an error. Manipulating the
> makefile is impossible because it's always new created.

That's why I don't like to use IDEs like eclipse. You can only
do things that the IDE authors have already thought about.

Take off that straight-jacket!

--
Grant Edwards grante Yow! Why don't you ever
at enter any CONTESTS,
visi.com Marvin?? Don't you know
your own ZIPCODE?
Hi Grant.

If you don't use an IDE, then what do you use to edit
and debug?

Rick.

--- Grant Edwards wrote:

> On 2007-05-01, steven_wetzel
> wrote:
>
> > how can I create an assembler list file with
> mspgcc
>
> Add the following flag to the gcc command line in
> the makefile:
>
> -Wa,-ahld=$(@F).l
>
> > and eclipse?
>
> I don't anytying about eclipse. IDEs are a huge
> waste of time.
> Writing software with an IDE is like trying to swim
> while
> wearing a straight-jacket.
>
> > Everything I do creates an error. Manipulating the
> > makefile is impossible because it's always new
> created.
>
> That's why I don't like to use IDEs like eclipse.
> You can only
> do things that the IDE authors have already thought
> about.
>
> Take off that straight-jacket!
>
> --
> Grant Edwards grante
> Yow! Why don't you ever
> at
> enter any CONTESTS,
> visi.com
> Marvin?? Don't you know
>
> your own ZIPCODE?
__________________________________________________
>> That's why I don't like to use IDEs like eclipse. You can only do things
>> that the IDE authors have already thought about.

>> Take off that straight-jacket!

>> Grant Edwards

In major multi-person software projects, a HUGE batch and/or MAKE file file
is often used to build a complete system.
IDEs don't help much in such environments.

Also, when you get a group of skilled developers several will have their own
favourite editors / IDEs.

For example, I often use use a Borland IDE to edit code. I also use it to
test code fragments in the PC world where possible.
On 2007-05-01, Rick wrote:

> If you don't use an IDE, then what do you use to edit

I mainly use JED for editing .
Occasionally I use scite when I want to do folding
.

> and debug?

Mostly I don't. I try to avoid "debugging" by doing
incremental development (testing as I add features). When
something doesn't work as expected, I usually just look at the
source code and think about the program's actual behavior vs.
its observed behavior. To help avoid bugs I crank up the
compiler warnings to the max and tell it to treat all warnings
as errors.

About 6 years ago at ESC, Texas Instruments gave out T-shirts I
thought were brilliant: they had a picture of a human brain and
below that it says "Use the Logic Analyzer Nature Gave You". I
still wear mine.

When I do get stuck, I usually just put in a printf() or two.
When that fails, I fire up GDB. When I do use GDB, I usually
use it from the command line. Maybe once or twice a year I use
the DDD GUI front-end for GDB.

--
Grant Edwards grante Yow! This PIZZA symbolizes
at my COMPLETE EMOTIONAL
visi.com RECOVERY!!
--- In m..., Grant Edwards wrote:
> ...
> > and debug?
>
> Mostly I don't. I try to avoid "debugging" by doing
> incremental development (testing as I add features). When
> something doesn't work as expected, I usually just look at the
> source code and think about the program's actual behavior vs.
> its observed behavior. ...
>
> ... "Use the Logic Analyzer Nature Gave You"... I
> ...

I couldn't agree more!

My logic analyzer is 72 years old and I intend to keep using it.