[aspectc-user] ac++ fails at asm-keyword

Matthias Urban matthias.urban at pure-systems.com
Fri Jun 13 11:45:33 CEST 2008


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?

This syntax is supported in the current development tree. If you build a 
new ac++ binary from our subversion repository, you can weave code that 
contains such asm specifiers. Btw, if __STRINGIFY is not defined, then 
the same error message occurs.

Regards,
Matthias

-- 
Matthias Urban
Phone: +49-391-544569-32 Fax: +49-391-544569-90
-- 
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