Matthias,
I tried something like that.
It compiles the C and assembles the assembler OK, but then fails to link
properly.
I get:
/opt/msp430-gcc-4.4.5/lib/gcc/msp430/4.4.5/msp1/libgcc.a(__jump_to_main.o): In 
function `__jump_to_main':
/opt/mspgcc/mspgcc4-20110130/build/gcc-4.4.5-build/../gcc-4.4.5/libgcc/../gcc/config/msp430/libgcc.S:724:
 undefined reference to `main'
collect2: ld returned 1 exit status

On Mon, 2011-03-07 at 12:45 +0100, Matthias Hartmann wrote:
> You may try to configure
> msp430-gcc -x assembler-with-cpp
> instead of
> msp430-as
> in the properties of your eclipse project.
> See also attachement.
> 
> 
> Am 05.03.2011 21:51, schrieb Matt:
> > On Sat, 2011-03-05 at 18:53 +0000, Grant Edwards wrote:
> >> On 2011-03-05, Matt<[email protected]>  wrote:
> >>
> >>> I'm using mspgcc-4.4.5/Eclipse/Ubuntu to compile a mixed C and asm
> >>> project for 'F2013. I have assembler functions in their own .S file
> >>> that use some TimerA registers. Is there a way to make GNU assembler
> >>> recognise C-style header files?
> >> If you use a .S suffix for the assmebly file, then you can "assemble"
> >> them with gcc, and it'll do the normal cpp stuff.
> >>
> > Thanks Grant.
> > That works a treat on the command line.
> > I just need to work out how to make Eclipse do it!
> > Matt
> >
> >
> > ------------------------------------------------------------------------------
> > What You Don't Know About Data Connectivity CAN Hurt You
> > This paper provides an overview of data connectivity, details
> > its effect on application quality, and explores various alternative
> > solutions. http://p.sf.net/sfu/progress-d2d
> > _______________________________________________
> > Mspgcc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> >
> >



------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to