[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] assembler expressions
From: |
Daniel O'Connor |
Subject: |
Re: [avr-gcc-list] assembler expressions |
Date: |
Sun, 6 Mar 2005 22:41:55 +1030 |
User-agent: |
KMail/1.7.92 |
On Sun, 6 Mar 2005 20:52, Jesper Hansen wrote:
> I know, and you also get the wrong result !
> That's why the typecasts are needed. (Or a different way to obtain the
> correct result).
> I think it MUST be possible to do this in the assembler (or preprocessor or
> whatever,
> it's SO easy in C.
Well you are asking the _assembler_ to compute an expression in C.
The assembler does assembly, not C :)
(My impression is the C compiler computes the constants not the preprocessor)
You could put the assembly inside inline assembly clauses in a C file.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
pgphrVyvrqe2t.pgp
Description: PGP signature