This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


#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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]