[aspectc-user] ac++ fails at asm-keyword
Danilo Beuche
danilo.beuche at pure-systems.com
Fri Jun 13 11:04:04 CEST 2008
Hi Jörg,
you might want to try a simple trick:
#ifdef __puma
#define asm(CODE)
#endif
that replaces asm() statements with nothing.
I haven't checked but don't one have to put curly braces {} around asm
statements?
Best regards,
Danilo
J. Liebig schrieb:
> Hi,
>
> I'm programming embedded systems and exploring stepwise development.
> Since Interrupt Service Routines aren't designed to be a member
> function in object-oriented programming with c++, I'm using a
> workaround in form of:
>
> static void INT_pwmSignal(void) asm(__STRINGIFY(TIMER0_OVF_vect))
> __attribute__ ((signal, __INTR_ATTRS))
>
>
> Unfortuneately the ac++ compiler fails at this point with:
>
> output/EnginesInterrupt.h:21: error: invalid member declaration near
> token `asm'
>
>
> The sourcecode compiles and works with an avr-cross-compiler. I'm not
> trying to weave anything into the file EnginesInterrupt.h.
>
> Is there a solution?
>
> kind regards
> Jörg Liebig
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user
>
--
Dr. Danilo Beuche
Phone: +49-391-54456910 Fax: +49-391-54456990
--
pure-systems GmbH
Geschäftsführung: Danilo Beuche, Holger Papajewski
Sitz der Gesellschaft: Magdeburg
Registergericht: Amtsgericht Magdeburg, HRB 13044
More information about the aspectc-user
mailing list