[uCsimm] Re: [UCLINUX] Assembler oddities

From: Tom Walsh (tom@cyberiansoftware.com)
Date: Wed Mar 22 2000 - 14:24:57 EST


Vladimir Gurevich wrote:

>
> This is a known problem with m68k assembler. By default it interprets
> '|' as the begging of a comment. You should use '--bitwise-or'
> parameter to make the assembler to interpret '|' as a bitwise OR
> operation.
>
> Happy hacking,
> Vladimir

    Actually, that by itself does not work, I have to say: "...
-Wa,--bitwise-or ..." in the compiler flags for it to work. This had me
stumped until I looked at the options used to compile crt0_rom.S while
grep'ing the output of a kernel compilation.

Thanks,

TomW

> >
> >
> > It is totally wierd that the only infix operator that fails is the
> > Bitwise OR, commenting the line out that uses the infix OR and it
> > assembles just fine. I am currently compiling the uClinux kernel
> > fine, I have another project written under COFF that also assembles /
> > compiles / runs fine. What is odd is that the crt0_rom.S file
> > contained in the kernel sources makes many such OR references and the
> > kernel compiles are okay.
> >
> > Any clues gratefully accepted!
> >
> > TomW
> >
> >
> > --
> > Tom Walsh - WN3L - Embedded Systems Consultant
> > 'www.openhardware.net', 'www.cyberiansoftware.com'
> > "Windows? No thanks, I have work to do..."
> >
> >
>
> --
> +------------------+------------------------+--------------------------+
> | | | |
> | :|: :|: | phone 408-525-9707
> Vladimir Gurevich | :|||: :|||: | fax 408-525-9707
> Software Engineer | .:|||||||:..:|||||||:. |
> RABU | CiscoSystems | e-mail vgurevic@cisco.com
> | | location SJ-7-2 Cube D1-12
> | http://www.cisco.com |
> +------------------+------------------------+--------------------------+

--
Tom Walsh - WN3L - Embedded Systems Consultant
'www.openhardware.net', 'www.cyberiansoftware.com'
"Windows? No thanks, I have work to do..."

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:35 EST