avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Large chunks of Assembly


From: john . johnson
Subject: Re: [avr-gcc-list] Large chunks of Assembly
Date: Thu, 30 May 2002 17:23:36 -0400

I do not know about #asm and #endasm but would like to take the opportunity
to ask about #inline or similar directives that I have seen in other
compilers including one GNU based compiler, one for the Hitachi SH series
uCs.

The #inline directive lets one write a function which looks like an actual
C function but in actual implementation generates in-line code where it is
"called" instead of a call/return to a traditionally generated call-able
machine code. The in-line code, as well as doing away with the call and
return instructions, is also minus the housekeeping code involved in the
call and return operations.

This makes for "clean" structured source code and looks much better than
attempts at doing the same thing with extended macros.

John Johnson





avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]