say:
-D_GNU_ASSEMBLER_ in a command line.

~d

On Friday 19 September 2003 00:34, Dan Miner wrote:
> Chris,
>
> That works for my simplified example.  Here's another
> example if what I'm REALLY attempting to do.  This code
> is ported from the IAR compiler.
>
> ;;;;;;;;;;;;;;;;;;;;;; file test.S ;;;;;;;;;;;;;;;
> #include  <msp430x14x.h>
>       bic.w   #OUTMOD2|OUTMOD1|OUTMOD0|OUT, &TBCCTL0
> ;;;;;;;;;;;;;;;;;; end of file test.S ;;;;;;;;;;;;
>
> The #include generates lots of error messages because of
> the non-assembler C code in there (as expected.)
>
> Are there include files for the assembler to define all
> the MSP430 I/O registers and bit fields?  (IAR's .h files
> can be included in an assembly file to do this.)
>
> Maybe I'll just port my small assembler file to C and that
> will solve my problem.
>
> Thanks for all the quick responses from everyone so far.
>
>                               - Dan
>
> > From: Chris Liechti
> > Sent: Thursday, September 18, 2003 2:54 PM
> >
> > Dan Miner wrote:
> > > I am having trouble assembling an assembly language source file.
> > > Here is a small sample file to demonstrate the issue:
> > >
> > > ;;;;;;;;;;;;;;;;;;;;;; file test.s ;;;;;;;;;;;;;;;
> >
> >                                     ^ small "s"!
> >
> >  > Command line:
> >  > C:\Data> msp430-gcc -mmcu=msp430x149  test.s -o test.o
> >
> > .s -> pure asm
> > .S -> asm with C preprocessor
> >
> > that means that the defines are not processed in your case...
> > and foo1 foo2 are unknown symbols to the asssember and are assumed
> > external. so try again with a renamed file.
> >
> > chris
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

-- 
/*****************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild     UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  State Polytechnical Univ.
      (_Y_.)'  ._   )  `._ `. ``-..-'   Radio-Physics Departament
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,  Russia
   (il),-''  (li),'  ((!.-'             +7 (812) 5403923, 5585314
 *****************************************************************/


Reply via email to