[ECOS] RE: How should I interpret this macro? thanks a lot. (Revised one)

Qiang Huang jameshq@liverpool.ac.uk
Thu Dec 5 07:31:00 GMT 2002


#define CYG_HAL_TABLE_BEGIN( _label, _name )
\
__asm__(".section \".ecos.table." __xstring(_name) ".begin\",\"aw\"\n"
\
    ".globl " __xstring(CYG_LABEL_DEFN(_label)) "\n"
\
    ".type    " __xstring(CYG_LABEL_DEFN(_label)) ",object\n"
\
    ".p2align " __xstring(CYGARC_P2ALIGNMENT) "\n"
\
__xstring(CYG_LABEL_DEFN(_label)) ":\n"
\
    ".previous\n"
\
       )
#endif

CYG_HAL_TABLE_BEGIN( __DEVTAB__, devtab );

expanded to :

	.section	.ecos.table.devtab.begin  aw
	.global	__DEVTAB__
	.type	__DEVTAB__  , object
	.p2align	3
	__DEVTAB__:
	.previous

Is the above correct? Thanks a lot.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list