gnu assembler does not support preprocessor directives.
If you want to use them, invoke assembler as:
        msp430-gcc -x assembler-with-cpp -I[includes] [other options] file.s43
(if file 'extension' is .S no '-x assembler-with-cpp' required)
if you want to include standard headers add '-D_GNU_ASSEMBLER_' to command 
line.
Unsupported relocation error can occur if you're trying to perform word 
operation with variable located at odd address.
To prevent this, declare word vars in assembler file as:
        .comm VAR,[size],2
(or .lcomm if local)

From files you've sent me I see no errors, except that there are no symbols 
'sleep_sp' and 'sleep_pc' defined.

read docs for more info.

~d



On Tuesday 26 November 2002 11:29, [email protected] wrote:
> It's not inline assembler it's 2 assembler files (attachment).
> What do i have to change to get rid of the errors?

-- 
/********************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
      (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
   (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
 ********************************************************************/


Reply via email to