This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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] |
"Rich DAddio" <richdaddio@sandvideo.com> writes: > I am doing an os port along with a migration to gcc on a basic RISC. And I > am not quite sure if this is the right list for this question so upfront > apologies it this is not appropriate. > > Inside one of the low-level init routines is a function and a piece of > inline assembly for a proprietary compiler assembler: > > int storeIt; > void theInitCFunction() > { > //inline assembly > _AS("st %mp, [storeIt]"); > } > > Which stashes the value of mp. > > Is there an easy way to do the same thing inline with gcc/as?? Do I have to > use extensions? http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/Extended-Asm.html#Extended%20Asm Ian
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |